Linux Tip: Create terminal shortcuts

h@ker

Active member
Joined
Jun 18, 2007
Messages
11,661
Reaction score
0
Points
36
Alias-Terminal.png
Linux users: You can assign shortcus for your most frequently used terminal commands. By appending the following line -- as many times as you would like -- to your bash configuration file (~/.bashrc) you can assign aliases to shorten the amount of keystrokes necessary to throw commands:
alias yourCommand="YourTerminalCommand"​
For example, Ubuntu users can create an alias for the command sudo apt-get install since it is used all the time. To do this, append the following line to ~/.bashrc:
alias ins="sudo apt-get install"​
Then whenever you want to install an application, just type ins appname instead of sudo apt-get install appname.</p></img>


More...
 
Back
Top