Created
July 16, 2018 08:14
-
-
Save rnwilson/7c6f908da99d7000ccf640eea233bb23 to your computer and use it in GitHub Desktop.
bash_aliases shell
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
if [ -f ~/.docker_aliases ]; then | |
. ~/.docker_aliases | |
fi | |
#common | |
alias cls='clear' | |
alias ipaddr='curl ifconfig.me' | |
## 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' | |
## older system use /proc/cpuinfo ## | |
##alias cpuinfo='less /proc/cpuinfo' ## | |
## get GPU ram on desktop / laptop## | |
alias gpumeminfo='grep -i --color memory /var/log/Xorg.0.log' | |
# open ports | |
alias ports='netstat -tulanp' | |
## get rid of command not found ## | |
alias cd..='cd ..' | |
## a quick way to get out of current directory ## | |
alias ..='cd ..' | |
alias ...='cd ../../../' | |
alias ....='cd ../../../../' | |
alias .....='cd ../../../../' | |
alias .4='cd ../../../../' | |
alias .5='cd ../../../../..' | |
## Colorize the ls output ## | |
alias ls='ls --color=auto' | |
## Use a long listing format ## | |
alias ll='ls -la' | |
## Show hidden files ## | |
alias l.='ls -d .* --color=auto' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment