Creating Aliases to Shorten Up Long Commands
Typing same long commands can be a lot of hastle while performing various actions in terminal like
1 2 3 4 5
Rather than doing all this again and again we can create short commands for these commonly used commands. For this we need to create a file named .bash_aliases in our home directory.
After creating file open with your favourite editor and start adding your shortcuts. Here are a few that I use commonly :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Add this file as a reference for aliases in your .bashrc or .bash_profile or .zshrc as per need
Open a new terminal and everything should work like a chram :)