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.
  • To run a command instead of an alias with the same name, prepend \. For example, I have this alias: alias ls='ls -l' but I want to run ls command, not the alias: I execute \ls ./some-folder.

If you have any suggestion, feel free to contact me via social media or email.