Create aliases or shortcuts to type long commands faster.

  • Create an alias.
    alias <NAME>=<VALUE>
    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 ~/.bashrc file (for Bash) and add the alias command. Then, you can run source ~/.bashrc if you don’t want to wait until next log in to enable the alias.