Creating a standard set of dotfiles and init script to use across multiple Linux/UNIX machine instances
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bash_dotfiles/bashrc

26 lines
528 B

# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
#export PS1="\u@\h\w$ "
alias ll='ls -la'
## pass options to free ##
alias meminfo='free -m -l -t'
## get top processes eating memory ##
alias psmem='ps auxf | sort -nr -k 4'
alias psmem10='ps auxf | sort -nr -k 4 | head -10'
## get top processes eating CPU ##
alias pscpu='ps auxf | sort -nr -k 3'
alias pscup10='ps auxf | sort -nr -k 3 | head -10'
## get server CPU info ##
alias cpuinfo='lscpu'