服务器配置 - 命令缩写

alias tt='tree -L 5'

alias ttt='tree -L 10'

alias l='ls -alFh'

alias lt="ls -ahltr --time-style '+%f %r'"

alias dudir='sudo du  -h --max-depth=1 | sort -h'

alias d='dudir'

# alias htop='sudo htop'

alias dstat-full='dstat -cdlmnpsy'

alias D='dstat -cdlmnpsy'

alias g="git"

alias P="git pull"

alias gs='git status'

alias grep='grep --color=auto'

alias lc='locate -i'

alias updatedb='sudo updatedb'

alias dudir='sudo du  -h --max-depth=1'

alias dstat-full='dstat -cdlmnpsy'

alias D='dstat -cdlmnpsy'

alias slurm='slurm -i eth0'

alias bi='sudo yum install -y'

alias bupgrade='sudo yum upgrade'

alias bui='sudo yum remove'

alias bremove='sudo yum remove'

alias bprovide='sudo yum provides'

bp() {

    sudo yum provides "*/$1"

}

alias bu='sudo yum update'

alias binfo='yum info'

alias bl='yum list'

alias bs='yum search'

alias vh='vim ~/.bash_history'

alias vip='sudo vim /etc/sysconfig/iptables && iptables-restart'

alias iptables-restart='sudo service iptables restart'

alias iptables-stop='sudo service iptables stop'

alias iptables-status='sudo service iptables status'

alias tailslow='tail -f /***/log/slow-query.log'

alias cnmysql='mysql -uwmzz --password="***" --default_character_set=utf8'

alias showslowlog='tail -f /***/log/slow-query.log'

上一篇