Change psmem10 and psmem to sort in the same order as pscpu10 and pscpu

This commit is contained in:
Cypher 2017-08-17 10:36:35 +10:00
parent d848c94804
commit cdec525fe5

View File

@ -34,8 +34,8 @@ alias clr='clear;echo "Currently logged in on $(tty), as $USER in directory $PWD
alias path='echo -e ${PATH//:/\\n}'
alias mkdir='mkdir -pv'
# get top process eating memory
alias psmem='ps -e -orss=,args= | sort -b -k1,1n'
alias psmem10='ps -e -orss=,args= | sort -b -k1,1n| head -10'
alias psmem='ps -e -orss=,args= | sort -b -k1 -nr'
alias psmem10='ps -e -orss=,args= | sort -b -k1 -nr | head -10'
# get top process eating cpu if not work try excute : export LC_ALL='C'
alias pscpu='ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1 -nr'
alias pscpu10='ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1 -nr | head -10'