diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-05-15 17:28:48 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-16 12:54:18 +0200 |
commit | be71ccb6909c657974ff3a42f36f7dcbc811e060 (patch) | |
tree | 7fcdaa1e11e702ade58d4bb3d241242ab243c8d3 /Base | |
parent | cf998bc082408f884bb1f06b121efda96149ad02 (diff) | |
download | serenity-be71ccb6909c657974ff3a42f36f7dcbc811e060.zip |
ps: Add `-u` option, to list processes associated with specified users
Diffstat (limited to 'Base')
-rw-r--r-- | Base/usr/share/man/man1/ps.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Base/usr/share/man/man1/ps.md b/Base/usr/share/man/man1/ps.md index 4454964522..ef3b857f54 100644 --- a/Base/usr/share/man/man1/ps.md +++ b/Base/usr/share/man/man1/ps.md @@ -5,7 +5,7 @@ ps - list currently running processes ## Synopsis ```**sh -$ ps [--version] [-a] [-A] [-e] [-f] [-p pid-list] [-q pid-list] +$ ps [--version] [-a] [-A] [-e] [-f] [-p pid-list] [-q pid-list] [-u user-list] ``` ## Description @@ -20,6 +20,7 @@ For each process, print its PID (process ID), to which TTY it belongs, and invok * `-f`: Also print for each process: UID (as resolved username), PPID (parent PID), and STATE (Runnable, Sleeping, Selecting, Reading, etc.) * `-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. +* `-u user-list`: Only consider processes for the given users, if they exist. `user-list` is a list of UIDs or login names, separated by commas or spaces. ## Examples |