debian11 常用命令设置别名
适用于所有用户
/etc/profile
# add to the end
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# reload
source /etc/profile
应用于用户
.bashrc
# add to the end
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
source .bashrc
共有 0 条评论