1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:47:34 +00:00

ps: Add the -a option, to list all processes associated with terminals

This commit is contained in:
Sam Atkins 2023-05-14 13:44:40 +01:00 committed by Andreas Kling
parent afb55d9fd8
commit a6e701a67b
2 changed files with 11 additions and 2 deletions

View file

@ -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.