Create aliases or shortcuts to type long commands faster.
- Create an alias.
alias ll='ls -l'
- This alias will be available only for the current session.
- To make alias available since user log in, you need to edit
~/.bashrcfile (for Bash) and add the
aliascommand. Then, you can run
source ~/.bashrcif you don’t want to wait until next log in to enable the alias.