ps
Table of ContentsClose
1. Usage
- BSD style - ps auxf 
- Custom columns + grepping the heading - ps xao pid,ppid,pgid,sid,comm|rg "PID|[command_name_something]" 
2. Debugging
- wchanrepresents the name of the kernel function on which the process is waiting. Helpful to check stuck processes.- ps -p [PID] -o pid,state,command,wchan