Jan 052009
First, edit your ~/.bashrc
#vi ~/.bashrc
and make sure that it contains the following three lines (if not add them editing the file)
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
After this all you have to do is edit your ~/.bash_aliases file and add your own aliases.
#vi ~/.bash_aliases
Examples
alias dld='cd ~/downloads'
alias x11='nano /etc/X11/XF86Config-4′
alias pak='cd /var/cache/apt/archives'
Save and exit the file.
In the above examples, "dld", "x11″ and "pak" commands will execute the exact command from the right side of the equal sign.
Incoming search terms:
- debian alias (440)
- alias debian (215)
- debian aliases (171)
- debian add alias (53)
- aliases debian (49)
- debian alias command (48)
- debian bash alias (41)
- debian create alias (40)
- debian bash aliases (34)
- debian alias file (25)
-
Gordon
-
wolfric
-
lied
-
http://lightlinux.blogspot.com Mikko
-
http://wiki.classesarecode.net John Allen
-
luser
-
JustinD
