linux 一般的默认bash别名
一般的默认bash别名我会使用如下的:
主要的是cdds、cddw、du和dua
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias cdds='cd /usr/local/nginx/conf/vhost'
alias cddw='cd /datas/website'
alias du='du -h --max-depth=1'
alias dua='du -h --max-depth=0 * | sort -hr'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi