mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
ps: Add -p
option, and distinguish it from -q
This commit is contained in:
parent
45c429853a
commit
3aff3c610a
2 changed files with 22 additions and 5 deletions
|
@ -5,7 +5,7 @@ ps - list currently running processes
|
|||
## Synopsis
|
||||
|
||||
```**sh
|
||||
$ ps [--version] [-a] [-A] [-e] [-f] [-q pid-list]
|
||||
$ ps [--version] [-a] [-A] [-e] [-f] [-p pid-list] [-q pid-list]
|
||||
```
|
||||
|
||||
## Description
|
||||
|
@ -18,7 +18,8 @@ For each process, print its PID (process ID), to which TTY it belongs, and invok
|
|||
* `-a`: Consider all processes that are associated with a TTY.
|
||||
* `-A` or `-e`: Consider all processes, not just those in the current TTY.
|
||||
* `-f`: Also print for each process: UID (as resolved username), PPID (parent PID), and STATE (Runnable, Sleeping, Selecting, Reading, etc.)
|
||||
* `-q pid-list`: Only consider the given PIDs, if they exist. `pid-list` is a list of PIDs, separated by commas or spaces.
|
||||
* `-p pid-list`: Only consider the given PIDs, if they exist. `pid-list` is a list of PIDs, separated by commas or spaces.
|
||||
* `-q pid-list`: Only consider the given PIDs, if they exist. Output the processes in the order provided by `pid-list`. `pid-list` is a list of PIDs, separated by commas or spaces.
|
||||
|
||||
## Examples
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue