procs: ps, With Columns You Can Read

ps aux works. Reading it does not. procs prints the same processes in columns, and takes a word to filter on.

procs is a process viewer. No flags gives you PID, user, CPU, memory, and the command. A word after that is a search. Checked on 0.14.12: a bare procs, procs loginwindow, and procs --sortd cpu. There is no -n. That flag is a ps habit, and procs will reject it.

install

macOS
# macOS
brew install procs
Debian/Ubuntu
# not in the default repos. Use the GitHub release or cargo
Fedora
# not in the default repos under this name. Use the GitHub release
Arch
# in extra
sudo pacman -S procs

examples

# The full list, readable columns
procs
# Filter by a word in the command
procs loginwindow
# Sort by CPU, descending. --sortd mem is the memory twin
procs --sortd cpu

pro tip

More than one word is OR by default. -a makes it AND: procs -a docker nginx. --regex is there when the word is a pattern. Read the column header. The triangle is the sort.

honest limits

procs reads the process table. It does not kill, renice, or trace. Those are still kill and ps. Color and the box drawing need a terminal that can draw them. In a dumb pipe, you still get the text. Do not pass -n. It is not a count.