summaryrefslogtreecommitdiff
path: root/Base/usr
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-05-14 13:44:40 +0100
committerAndreas Kling <kling@serenityos.org>2023-05-16 12:54:18 +0200
commita6e701a67bf9d21ede5ccecbce3b3c9fef6ce8c4 (patch)
tree580bfa9d54506b1d60f37ac18b87ad49c3b3f716 /Base/usr
parentafb55d9fd8af4566433c907c3069a65f660d6d48 (diff)
downloadserenity-a6e701a67bf9d21ede5ccecbce3b3c9fef6ce8c4.zip
ps: Add the `-a` option, to list all processes associated with terminals
Diffstat (limited to 'Base/usr')
-rw-r--r--Base/usr/share/man/man1/ps.md3
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 0765c8da9b..36b543bf11 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] [-e] [-f] [-q pid-list]
+$ ps [--version] [-a] [-A] [-e] [-f] [-q pid-list]
```
## Description
@@ -15,6 +15,7 @@ For each process, print its PID (process ID), to which TTY it belongs, and invok
## Options
+* `-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.