Terminal
Learn

What happens when you store the following aliases in ~/.bash_profile?

alias hy="history"

hy is set as alias for the history command in the bash profile. The alias is then made available in the current session through source. By typing hy, the command line outputs a history of commands that were entered in the current session.

alias ll="ls -la"

ll is set as an alias for ls -la and made available in the current session through source. By typing ll, the command line now outputs all contents and directories in long format, including all hidden files.

Report a Bug
If you see a bug or any other issue with this page, please report it here.