1. Bring up .bashrc for editing with the following command:
sudo gedit /home/user/.bashrc
Note that user = your user name
2. Add an alias to the file and save. The syntax for an alias is the following:
Alias nickname='command'
For example, you might have something like this-
Alias songbird='/opt/Songbird/songbird'
Sources:
Lifehacker-Ten Handy Bash Aliases
Ubuntu-Environment Variables (explains why .bashrc is used)
No comments:
Post a Comment