ps Command Generator
Generate ps commands to report running processes
Getting Started with ps
## What is ps?
The `ps` command reports a snapshot of currently running processes. It's the go-to tool for inspecting what's running, who owns it, and how much CPU/memory each process consumes — useful for debugging, monitoring, and finding runaway processes.
## How to Use
1. **Set Mode**: Pick an output format (`aux` for BSD-style full listing, `-ef` for System V style, or Custom). 2. **Filter (optional)**: In Custom mode, narrow by user (`-u`), PID (`-p`), or command name (`-C`). 3. **Shape Output**: Add sorting (`--sort`), a process tree (`--forest`), or thread info (`-T`). 4. **Copy & Run**: Copy the generated command into your terminal.
Common Options
### `aux` BSD-style listing The classic "show me everything" view — all processes for all users, with CPU/mem stats and the full command line. The most common starting point.
### `-ef` Standard listing System V-style full listing (`-e` every process, `-f` full format). Use this when you need the PPID column or a portable format across Unix variants.
### `-u` User Restrict output to processes owned by a specific user (Custom mode). E.g. `ps -u john` shows only John's processes.
### `-p` PID Show only the process with the given PID. Useful for verifying a single daemon is alive.
### `-C` Command name Select processes by executable name (e.g. `nginx`, `sshd`). Matches the binary name, not the full command line.
### `--sort` Sort field Sort rows by a column. Prefix with `-` for descending. Common values: `-%cpu`, `-%mem`, `-pid`, `rss`.
### `--forest` ASCII tree Render parent/child relationships as an ASCII tree, making process hierarchies obvious.
### `-H` Hierarchy Similar to `--forest` but a lighter-weight indent that shows process hierarchy.
### `-w` Wide output Disable truncation of long command lines so the full command is visible.
### `-T` Show threads List individual threads (with SPID column) in addition to processes.
▶How do I find the top memory-consuming processes?
▶What's the difference between `ps aux` and `ps -ef`?
▶How do I see the full command line of a process?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee