Ihar Hancharenka bbdcffddc5 m
2023-07-31 22:23:54 +03:00

30 строки
470 B
Plaintext

## get top process eating memory
alias psmem='ps auxf | sort -nr -k 4'
## get top process eating cpu ##
alias pscpu='ps auxf | sort -nr -k 3'
ps -o pid,cmd,pmem,vsz,size,rss
print pid and cmd-line
# get top process eating memory
alias psmem10='ps -e -orss=,args= | sort -b -k1,1n| tail -10'
-e
all processes
-o
STANDARD FORMAT SPECIFIERS
rss resident set size
/proc/
cd /proc/1084
cat cmdline
cat environ
ls -l cwd
Killing:
killall -9 <ps_name>