目录
设置命令别名
alias 别名=' 需要替换的命令 '
示例:
$ alias lm='ls -al | more'
$ alias rm='rm -i'
查看所有的命令别名
alias
示例:
$ alias
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias lm='ls -al | more'
alias ls='ls --color=auto'
alias rm='rm -i'
alias vi='vim'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
取消命令别名
unalias 别名
示例:
$ unalias lm