Linux中设置别名
作者:邓聪聪
查看别名:
alias
设置别名:
临时设置:
alias show='ls -al'
永久生效:
修改 家目录/.bashrc
[root@localhost ~]# cat .bashrc
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
删除别名:
unalias 别名