Comments on: 5 Different Types of Shell Commands and Their Usage in Linux https://www.tecmint.com/understanding-different-linux-shell-commands-usage/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Wed, 01 May 2024 21:28:27 +0000 hourly 1 By: Gary Stewart https://www.tecmint.com/understanding-different-linux-shell-commands-usage/comment-page-1/#comment-2166070 Wed, 01 May 2024 21:28:27 +0000 http://www.tecmint.com/?p=22414#comment-2166070 There is a better way to store bash aliases. If your .bashrc file has these lines in it:

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

then you can store any bash aliases you create in the .bash_aliases file in your home directory. They are entered into that file in exactly the same format you have shown.

If you add a new one you can make it available to you by typing .~/.bash_aliases. To list all the aliases currently available to you just type the command alias.

]]>