[root@localhost ~]# alias
alias cp='cp -i'
alias l.='ls -d .*
--color=tty'
alias ll='ls -l --color=tty'
alias ls='ls
--color=tty'
alias mv='mv -i'
alias rm='rm -i'
alias which='alias |
/usr/bin/which --tty-only --read-alias --show-dot
--show-tilde'
[root@localhost ~]#
[root@localhost ~]# cp install.log test/
cp: overwrite
`test/install.log'?
#Angi, 浼氭彁紺烘槸鍚﹁鐩栵紝鍥犱負cp鍛戒護琚玜lias涓篶p -i浜嗐?/p>
[root@localhost ~]# \cp install.log test/
[root@localhost ~]#
#Angi錛屼嬌鐢╘cp鍛戒護錛屼笉鎻愮ず鏄惁瑕嗙洊浜?/p>
榪樻湁涓縐嶆柟娉曪紝涓嶈繃錛屼笉鎺ㄨ崘錛屼慨鏀筩p鐨刟lias
[root@localhost ~]# alias cp=‘cp’
榪欎釜鍦╯h鑴氭湰涓彲鑳芥瘮杈冩湁鐢ㄣ?/p>