2021-08-08 16:45:49 +01:00
|
|
|
# procs
|
|
|
|
|
|
|
|
> Display information about the active processes.
|
|
|
|
> More information: <https://github.com/dalance/procs>.
|
|
|
|
|
|
|
|
- List all processes showing the PID, user, CPU usage, memory usage, and the command which started them:
|
|
|
|
|
|
|
|
`procs`
|
|
|
|
|
2022-12-07 05:44:52 +00:00
|
|
|
- List information about processes, if the commands which started them contain `zsh`:
|
2021-08-08 16:45:49 +01:00
|
|
|
|
|
|
|
`procs {{zsh}}`
|
|
|
|
|
2022-12-07 05:44:52 +00:00
|
|
|
- List information about all processes sorted by CPU time in [a]scending or [d]escending order:
|
2021-08-08 16:45:49 +01:00
|
|
|
|
2022-12-07 05:44:52 +00:00
|
|
|
`procs {{--sorta|--sortd}} cpu`
|
2021-08-08 16:45:49 +01:00
|
|
|
|
2022-12-07 05:44:52 +00:00
|
|
|
- List information about processes with either a PID, command, or user containing `41` or `firefox`:
|
2021-08-08 16:45:49 +01:00
|
|
|
|
|
|
|
`procs --or {{PID|command|user}} {{41}} {{firefox}}`
|
|
|
|
|
2022-12-07 05:44:52 +00:00
|
|
|
- List information about processes with both PID `41` and a command or user containing `zsh`:
|
2021-08-08 16:45:49 +01:00
|
|
|
|
|
|
|
`procs --and {{41}} {{zsh}}`
|