sh Bash别名

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Bash别名相关的知识,希望对你有一定的参考价值。

# confirmation
alias mv='mv -i'
alias cp='cp -i'
alias ln='ln -i'

# Brew shortcuts
alias update='brew update'
alias upgrade='brew upgrade'
alias services='brew services list'
alias start='brew services start'
alias stop='brew services stop'

## pass options to free ##
alias meminfo='free -m -l -t'

## get top process eating memory
alias psmem='ps auxf | sort -nr -k 4'
alias psmem10='ps auxf | sort -nr -k 4 | head -10'

## get top process eating cpu ##
alias pscpu='ps auxf | sort -nr -k 3'
alias pscpu10='ps auxf | sort -nr -k 3 | head -10'

## Get server cpu info ##
alias cpuinfo='lscpu'

## get GPU ram on desktop / laptop##
alias gpumeminfo='grep -i --color memory /var/log/Xorg.0.log'

## this one saved by butt so many times ##
alias wget='wget -c'

## set some other defaults ##
alias df='df -H'
alias du='du -ch'

# top is atop, just like vi is vim
alias top='atop'

#K8s
alias kc='kubectl config'
alias kgc='kubectl config get-contexts'
alias kuc='kubectl config use-context'
alias kl='kubectl logs -f'
alias klp='kubectl logs -fp'
alias kd='kubectl describe'
alias kp='kubectl get pods'
alias ks='kubectl get services'
alias ki='kubectl get ingress'

以上是关于sh Bash别名的主要内容,如果未能解决你的问题,请参考以下文章

sh bash别名

sh BASH常用别名及设置

sh Bash别名

sh git的Bash别名

sh Bash别名

sh 有用的bash别名或命令