Searches for a word in the list of previously used commands
help
man
Opens up the man page for a command
p
ps -f
Displays currently executing processes
sortnr
sort -n -r
Used to sort the lines of a text file
unexport
unset
Used to unset an environment variable
Global aliases
These aliases are expanded in any position in the command line, meaning you can use them even at the
end of the command you've typed. Examples:
Quickly pipe to less:
$ ls -l /var/log L
# will run
$ ls -l /var/log | less
Silences stderr output:
$ find . -type f NE
# will run
$ find . -type f 2>/dev/null
Alias
Command
Description
H
| head
Pipes output to head which outputs the first part of a file
T
| tail
Pipes output to tail which outputs the last part of a file
G
| grep
Pipes output to grep to search for some word
L
| less
Pipes output to less, useful for paging
M
| most
Pipes output to more, useful for paging
LL
2>&1 | less
Writes stderr to stdout and passes it to less
CA
2>&1 | cat -A
Writes stderr to stdout and passes it to cat
NE
2 > /dev/null
Silences stderr
NUL
> /dev/null 2>&1
Silences both stdout and stderr
P
2>&1| pygmentize -l pytb
Writes stderr to stdout and passes it to pygmentize
File extension aliases
These are special aliases that are triggered when a file name is passed as the command. For example,
if the pdf file extension is aliased to acroread (a popular Linux pdf reader), when running file.pdf
that file will be open with acroread.
Reading Docs
Alias
Command
Description
pdf
acroread
Opens up a document using acroread
ps
gv
Opens up a .ps file using gv
dvi
xdvi
Opens up a .dvi file using xdvi
chm
xchm
Opens up a .chm file using xchm
djvu
djview
Opens up a .djvu file using djview
Listing files inside a packed file
Alias
Command
Description
zip
unzip -l
Lists files inside a .zip file
rar
unrar l
Lists files inside a .rar file
tar
tar tf
Lists files inside a .tar file
tar.gz
echo
Lists files inside a .tar.gz file
ace
unace l
Lists files inside a .ace file
Some other features
Opens urls in terminal using browser specified by the variable $BROWSER
Opens C, C++, Tex and text files using editor specified by the variable $EDITOR
Opens images using image viewer specified by the variable $XIVIEWER