Alias
From LinuxSwords Wiki
Contents |
Creating shortcuts on the cmdline
One of the common aliases is ll instead of ls -l or even ls -lh If you want that kind of shortcut not only temporarly but in every shell, open up your ~/.bashrc in your favorite text-editor and enter
alias ll='ls -l'
Common aliases
alias df='df -h' alias ..='cd ..' alias ...='cd ../..' alias e='vim'
disabling an alias
is done via
unalias ll
showing the alias
if you want to know if ls has an alias use the type command:
type ls
and the result will most likely be
$ type ls ls is aliased to `ls --color=auto'
