crashhacker

top processes and commands

Oct 20th, 2018
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. version 1 :
  2. ps aux | awk '{print $2, $4, $11}' | sort -k2rn | head -n 20
  3.  
  4. version 2 :
  5. while [ true ]
  6. do
  7.     ps aux | sort -nrk 3,3 | head -n 10
  8.     sleep 10
  9. done
Add Comment
Please, Sign In to add comment