How to create an alias on linux
First, you have to figure out what shell you are using. This can be done by running this command:
In my case it's zsh. Depending on what shell you are using you will have to configure the aliases in different locations.
- zsh: ~/.zshrc
- bash: ~/.bashrc
- Fish: ~/.config/fish/config.fish
Now open the file in your favorite editor.
And add the following line:
Now you have to restart your terminal.
After restarting the terminal you now can type
list to execute the