mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
procs: add page (#6274)
This commit is contained in:
parent
0c4c907748
commit
7927398de4
1 changed files with 24 additions and 0 deletions
24
pages/linux/procs.md
Normal file
24
pages/linux/procs.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# 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`
|
||||
|
||||
- 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}}`
|
Loading…
Add table
Reference in a new issue