Created
February 19, 2020 07:24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# misc # | |
alias dir='pwd' | |
alias df='df -H' | |
alias du='du -ch' | |
# colorization # | |
alias grep='grep --color=auto' | |
alias ls='ls -all' | |
alias egrep='egrep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias sha1='openssl sha1' | |
alias diff='colordiff' | |
# confirmation # | |
alias mv='mv -i' | |
alias cp='cp -i' | |
alias ln='ln -i' | |
# become root # | |
alias root='sudo -i' | |
alias su='sudo -i' | |
## 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' | |
export LANG=en_US.UTF-8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment