Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

procs

> 开发工具
Open source

A modern replacement for ps written in Rust

6.1K stars0 likes0 views
WebsiteGitHub

About

A modern replacement for ps written in Rust

procs

procs is a replacement for ps written in Rust.

Documentation quick links

  • Features
  • Platform
  • Installation
  • Usage
  • Configuration

Features

  • Colored and human-readable output
    • Automatic theme detection based on terminal background
  • Multi-column keyword search
  • Some additional information which are not supported by ps
    • TCP/UDP port
    • Read/Write throughput
    • Docker container name
    • More memory information
  • Pager support
  • Watch mode (like top)
  • Tree view

Platform

  • Linux is supported.
  • macOS is experimentally supported.
    • macOS version is checked only in the GitHub Actions environment.
    • The issues caused by real-machine are welcome.
  • Windows is supported.
  • FreeBSD is experimentally supported.

Installation

Download binary

Download from release page, and extract to the directory in PATH.

Nixpkgs

You can install from Nixpkgs.

nix-env --install procs

snapcraft

You can install from snapcraft.

bash
sudo snap install procs

homebrew

You can install from homebrew.

bash
brew install procs

MacPorts

You can install from MacPorts.

bash
sudo port install procs

Alpine Linux

You can install from the Alpine Linux repository.

The correct repository (see above link for the most up-to-date information) should be enabled before apk add.

bash
sudo apk add procs

Arch Linux

You can install from the Arch Linux extra repository.

bash
sudo pacman -S procs

Scoop

You can install with scoop.

scoop install procs

Fedora

bash
sudo dnf install procs

Windows

winget install procs

RPM

You can install with rpm.

bash
sudo rpm -i https://github.com/dalance/procs/releases/download/v0.14.12/procs-0.14.12-1.x86_64.rpm

Cargo

You can install with cargo.

cargo install procs

X-CMD

You can install with x-cmd.

x env use procs
# or
x procs # Download procs, and invoke procs in a way that does not affect the current environment

Installation Notes

Permissions issues

On macOS, normal users can't access any information on other users' processes. On Linux, normal users can't access some information (ex. Read/Write throughput) of other users.

If you want to show this information, you should use sudo.

bash
$ sudo procs
[sudo] password for ...:

If you want to skip password input, you can add the following entry to /etc/sudoers.

[user or group] ALL= NOPASSWD: [procs binary path]
// ex. myuser ALL= NOPASSWD: /usr/local/bin/procs

Usage

In the following screenshots, config/large.toml is used as the configuration.

Show all processes

Type procs only. It shows the information of all processes.

bash
procs

Search by non-numeric keyword

If you add any keyword as argument, it is matched to USER, Command by default.

bash
procs zsh

If you want to add columns matching to non-numeric keyword, nonnumeric_search option can be used in configuration file.

Search by numeric keyword

If a numeric is used as the keyword, it is matched to PID by default. Numeric is treated as exact match, and non-numeric is treated as partial match by default.

bash
procs --or 6000 60000 60001 16723

If you want to add columns matching to numeric keyword, numeric_search option can be used in configuration file.

Note that procfs permissions only allow identifying listening ports for processes owned by the current user, so not all ports will show up unless run as root.

Logical operation of search keywords

If there are some keywords, logical operation between the keywords can be specified by commandline option.

  • --and : The processes that match with all keywords are shown.
  • --or : The processes that match with any keyword are shown.
  • --nand: The processes are shown unless these match with all keywords.
  • --nor : The processes are shown unless these match with any keyword.

The default operation can be specified in the configuration file. See [search] section.

Show Docker container name

If you have access permission to docker daemon ( unix:///var/run/docker.sock ), Docker column is added.

bash
procs growi

Note that procs gets the container information through UNIX domain socket, so Docker Toolbox on macOS (doesn't use UNIX domain socket) is not supported. Docker Desktop for Mac is supported but not tested.

Pager

If output lines exceed terminal height, pager is used automatically. This behavior and pager command can be specified by configuration file.

Linux / macOS

On Linux and macOS, less is the default pager. If there is not less, more is used. Instead of them, built-in pager can be used by configuration use_builtin.

Windows

On Windows, built-in pager is always used.

Watch mode

If --watch or --watch-interval <second> option is used, procs automatically updates output like top. If --watch is used, the update interval becomes 1s. The update interval can be specified by the argument of --watch-interval. There are some keyboard shortcuts to control.

  • n: Change the sort column to the next column
  • p: Change the sort column to the previous column
  • a: Change the sort order to ascending
  • d: Change the sort order to descending
  • q: Quit

Tree view

If --tree option is used, processes are sorted by dependency order and dependency tree is shown at left side.

bash
procs --tree

If TreeSlot column exists in config, dependency tree is shown at the slot.

Sort column

Column sort order can be changed by --sorta or --sortd option. The last character of --sorta and --sortd means sort order: "a"scending and "d"escending.

The column for sort is selected by the option keyword. The keyword is matched with column kind that is shown by --list option. If --sorta cputime, column is sorted by CpuTime with ascending order. If --sortd rss, column is sorted by VmRss with descending order. The keyword is matched partially and case is ignored.

The default sort is specified by [sort] section in the configuration file.

bash
procs --sortd cpu

Insert column

--insert option inserts new column to the position of Slot column or MultiSlot column. The column for insert is selected by the option keyword. The keyword is the same as sort option. A Slot column can be used by an inserted column. If many insertions are required, many Slot columns should be added. A MultiSlot column can be used by many inserted columns. If there is a MultiSlot, all the remaining columns are inserted to the MultiSlot, and the subsequent Slot / MultiSlot is not used. Unused Slot / MultiSlot is not shown.

Shell completion

--gen-completion option generates shell completion files under the current directory. The following shells are supported.

  • zsh
  • bash
  • fish
  • powershell
  • elvish

--gen-completion-out option generates shell completion to stdout. You can source it directly on some shells.

bash
source <(procs --gen-completion-out bash)

Configuration

Configuration path

You can change configuration by writing a configuration file. There are some configuration examples in config directory of this repository. config/large.toml is the default configuration before procs v0.9.21.

The locations of the configuration file is OS-specific:

  • Linux: ~/.config/procs/config.toml, /etc/procs/procs.toml
  • macOS: ~/Library/Preferences/com.github.dalance.procs/config.toml, /etc/procs/procs.toml
  • Windows: ~/AppData/Roaming/dalance/procs/config/config.toml

For compatibility, if ~/.procs.toml exists, it will be preferred to the OS-specific locations.

Specify a configuration from command line

--use-config option can specify a built-in configuration. --load-config option can specify a configuration file path.

Configuration example

The complete example of a configuration file can be generated by --gen-config option.

…

[[columns]] section

[[columns]] section defines which columns are used. The first [[columns]] is shown at left side, and the last is shown at right side.

Key Value Default Description
kind See kind list Column type
style See style list Column style
numeric_search true, false false Whether the column can be matched with numeric keywords
nonnumeric_search true, false false Whether the column can be matched with non-numeric keywords
align Left, Right, Center Left Text alignment
max_width [Number] Maximum column width
min_width [Number] Minimum column width
header [String] Alternate header description

kind list

procs kind ps STANDARD FORMAT Description Linux macOS Windows FreeBSD
Arch -not supported- Architecture of binary o o
Ccgroup -not supported- Control group by compressed format o
Cgroup cgroup Control group o
Command args Command with all arguments o o o o
ContextSw -not supported- Context switch count o o o
CpuTime cputime Cumulative CPU time o o o o
Docker -not supported- Docker container name o o
Eip eip Instruction pointer o
ElapsedTime -not supported- Elapsed time o o o o
Env e output modifier Environment variables o o
Esp esp Stack pointer o
FileName comm File name o

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustcliprocessrust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具