ConfigsApr 15, 2026·2 min read

procs — A Modern Replacement for ps Written in Rust

procs is a colorized, human-friendly replacement for the classic ps command, with built-in tree view, column filters, Docker integration, and TCP/UDP port display.

TL;DR
procs replaces the classic ps command with colorized output, tree view, and Docker integration.
§01

What it is

procs is a modern replacement for the Unix ps command, written in Rust. It displays running processes with colorized output, human-readable formatting, built-in tree view, column filters, Docker container integration, and TCP/UDP port display. It aims to make process inspection faster and more readable than the default ps output.

This tool is for developers, sysadmins, and anyone who frequently inspects running processes. If you find yourself piping ps output through grep and awk to find what you need, procs simplifies that workflow.

§02

How it saves time or tokens

procs eliminates the need for complex ps + grep + awk pipelines. A single procs command with keyword search replaces multi-step filtering. The colorized output makes it easier to scan for the information you need. Docker integration shows container names alongside process information, saving you from cross-referencing docker ps output.

§03

How to use

  1. Install procs via your package manager.
  2. Run procs to see all processes with enhanced formatting.
  3. Use keyword search to filter processes.
  4. Use flags for tree view, Docker integration, or specific columns.
# Install on macOS
brew install procs

# Install on Linux
cargo install procs

# Show all processes
procs

# Search for a specific process
procs node

# Tree view
procs --tree

# Show processes using a specific port
procs --tcp
§04

Example

Comparing ps and procs output:

# Traditional ps approach to find node processes
ps aux | grep node | grep -v grep

# With procs - one command, colorized, readable
procs node

# Output includes PID, User, CPU%, MEM%, command,
# and optionally Docker container name and TCP ports

# Show process tree for a specific PID
procs --tree 1234

# Watch mode - refresh every 2 seconds
procs --watch 2 node
§05

Related on TokRepo

§06

Common pitfalls

  • procs requires terminal color support. Redirecting output to a file or pipe strips colors unless you use --color always.
  • Some columns (like Docker container names) require elevated permissions or Docker socket access.
  • The default column set differs from ps. If scripts depend on specific ps output format, procs is not a drop-in replacement for scripted use.
  • On Linux, reading TCP/UDP port information requires root or CAP_NET_ADMIN capability.
  • procs does not replace ps for POSIX-compliant scripting. Use it as an interactive tool, keep ps for scripts.

Frequently Asked Questions

How is procs different from ps?+

procs adds colorized output, human-readable formatting, built-in keyword search, tree view, Docker integration, and TCP/UDP port display. It is designed for interactive use rather than scripting. ps remains better for POSIX-compliant scripts.

Does procs work on macOS and Linux?+

Yes. procs runs on macOS, Linux, and Windows. Some features like Docker integration and TCP port display depend on OS-specific APIs and may behave slightly differently across platforms.

Can I customize which columns procs displays?+

Yes. procs supports a configuration file where you can define custom column sets, colors, and sort order. The config file is typically located at ~/.config/procs/config.toml.

Does procs show Docker container information?+

Yes. When Docker is running, procs can show which container each process belongs to. This eliminates the need to cross-reference ps and docker ps output. Docker socket access is required.

Is procs suitable for monitoring in production?+

procs is designed for interactive inspection rather than continuous monitoring. For production monitoring, use tools like htop, Prometheus node_exporter, or Datadog. procs is best for quick debugging sessions.

Citations (3)

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets