Advertisement
xe1phix

Xe1phix-[PIDStat]-Cheatsheet-[v2.5.24].sh

Oct 6th, 2022
761
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.28 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3.  
  4. ## -------------------------------------------------------------------- ##
  5.       pidstat -r              ## Report page faults
  6. ## -------------------------------------------------------------------- ##
  7.       pidstat -s              ## Stack utilization
  8. ## -------------------------------------------------------------------- ##
  9.       pidstat -d              ## Report  I/O statistics
  10. ## -------------------------------------------------------------------- ##
  11.       pidstat -p $PID         ## Resource consumption details
  12. ## -------------------------------------------------------------------- ##
  13.       pidstat -p ALL          ## Resource consumption of all processes
  14. ## -------------------------------------------------------------------- ##
  15.       pidstat -u              ## Report CPU utilization
  16. ## -------------------------------------------------------------------- ##
  17.       pidstat -l              ## Display the process command
  18. ## -------------------------------------------------------------------- ##
  19.  
  20.  
  21. ##-==========================================================-##
  22. ##  [+] Display global page faults and memory statistics
  23. ##      for processes firefox & chrome
  24. ##-==========================================================-##
  25. pidstat -C "firefox|chrome" -r -p ALL
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement