Bash Alias

Create a new Bash Alias

  • add a new bash alias called allhomecontents which shows all files (including hidden files) to your ~/.bashrc profile
    • source the new file
    • run the new alias

Questions & Answers

What is a Bash Alias?

CLICK FOR ANSWER

A Bash Alias is a command shortcut. It allows you to create a new command name that will run whatever command or collection of commands you want.

When you invoke the allhomecontents alias what command is being run?

CLICK FOR ANSWER

ls

For the previous answer did you include any options to be run with that command?

CLICK FOR ANSWER

Yes. The -a option so all files, including hidden files, would be displayed.