diff --git a/pages/linux/procs.md b/pages/linux/procs.md new file mode 100644 index 0000000000..f03dc42a50 --- /dev/null +++ b/pages/linux/procs.md @@ -0,0 +1,24 @@ +# procs + +> Display information about the active processes. +> More information: . + +- List all processes showing the PID, user, CPU usage, memory usage, and the command which started them: + +`procs` + +- Show information about processes, if the commands which started them contain `zsh`: + +`procs {{zsh}}` + +- Show information about all processes sorted by CPU time in [a]scending or [d]escending order: + +`procs {{--sortd|--sorta}} cpu` + +- Show information about processes with either a PID, command, or user containing (`zsh` or `firefox`): + +`procs --or {{PID|command|user}} {{41}} {{firefox}}` + +- Show information about processes with both PID `41` and a command or user containing `zsh`: + +`procs --and {{41}} {{zsh}}`