Linux commands are cool and fun to work with. Be it ls (to list files) or cd (to change the directory), they are already short and precise. This is one of the reasons we love Linux. However, if you have to repeatedly type a set of commands or a long command with too many parameters, its not fun anymore. The Linux creators were caring enough to provide a solution for that too. The solution for such cases is Bash Shell Alias. A Bash Shell Alias(often called as a Bash Alias or simply an Alias ) is an alternate name, usually a short one, given to a command or a set of commands. This article shows how to get started with aliases and how to add them permanently in Ubuntu 20.04. It works for older versions too.

For example, I have to repeatedly type cd /var/www/html in my day-to-day work. So I want to have a shortcut for it. I can create a custom command, say cdh, which is equivalent of the same. I can do so by typing the following on the terminal.

#ubuntu 20.04 #bash alias #ubuntu

What is  Bash Alias and how to add one in Ubuntu 20.04
11.30 GEEK