ps¶
Report a snapshot of current processes.
Synopsis¶
Description¶
Display information about active processes. By default, lists all processes with minimal columns. Use filters to narrow results.
Flags¶
| Flag | Short | Description | Default |
|---|---|---|---|
--full |
-f |
Display full format listing | false |
--users |
-u |
Filter by username(s) | |
--pids |
-p |
Filter by PID(s) | |
--name |
-n |
Filter by command name (substring) | |
--current |
-c |
Show only processes owned by current user | false |
--invert |
-v |
Invert filtering (show non-matching) | false |
--no-truncate |
-N |
Do not truncate command line output | false |
Examples¶
List all processes:
Full format listing:
Filter by current user:
Filter by process name:
Filter by specific PID:
Filter by username:
Show all except matching processes:
Full output without truncation:
Sample Output¶
Simple format:
Full format (-f):