ps

Table of Contents

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

  • wchan represents 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
    

Created: 2024-07-16 Tue 16:44

Validate