alias

From Initq

Jump to: navigation, search

The alias command can be useful if you want to create a 'shortcut' to a command. The format is alias name='command'

To see a list of aliases set up on your linux box, just type alias at the prompt.

alias attrib='chmod'
alias chdir='cd'
alias copy='cp'
alias cp='cp -i'
alias d='dir'
alias del='rm'
alias deltree='rm -r'
alias dir='/bin/ls $LS_OPTIONS --format=vertical'
alias edit='pico'
alias ff='whereis'
alias ls='/bin/ls $LS_OPTIONS'
alias mem='top'
alias move='mv'
alias mv='mv -i'
alias pico='pico -w -z'
alias rm='rm -i'
alias search='grep'
alias v='vdir'
alias vdir='/bin/ls $LS_OPTIONS --format=long'
alias which='type -path'
alias wtf='watch -n 1 w -hs'
alias wth='ps -uxa | more'

Alias go in the .bashrc file. To get rid of alias use the unalias command. the unalias -a command will get rid of all aliases.

Personal tools