ps - Report a snapshot of the current processes
The ps command
gives comprehensive statistics data on process level and reports a
snapshot of the current processes.
Example
Use
ps uax to get top processes :# ps uax | head USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.3 169352 13124 ? Ss Apr23 0:56 /usr/lib/systemd/systemd --switched-root --system --deserialize 17 root 2 0.0 0.0 0 0 ? S Apr23 0:02 [kthreadd] root 3 0.0 0.0 0 0 ? I< Apr23 0:00 [rcu_gp] root 4 0.0 0.0 0 0 ? I< Apr23 0:00 [rcu_par_gp] root 5 0.0 0.0 0 0 ? I< Apr23 0:00 [slub_flushwq] root 7 0.0 0.0 0 0 ? I< Apr23 0:00 [kworker/0:0H-events_highpri] root 10 0.0 0.0 0 0 ? I< Apr23 0:00 [mm_percpu_wq] root 11 0.0 0.0 0 0 ? S Apr23 0:00 [rcu_tasks_rude_] root 12 0.0 0.0 0 0 ? S Apr23 0:00 [rcu_tasks_trace]