[root@fz ~]# [root@fz ~]# alias alias cdd='cd /home/data/android/' alias cp='cp -i' alias l='ls -la' alias l.='ls -d .* --color=auto' alias ll='ls -l --color=auto' alias ls='ls --color=auto' alias mv='mv -i' alias rm='rm -i' alias tf='tail -f ' alias vc='vim ~/.bash_profile' alias vs='source ~/.bash_profile' alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
修改 ~/.bashrc ,在 “alias cp=’cp -i’ ”前添加#号注释后即可。
[root@fz test]# vi ~/.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