ps
ps reports a list of the currently running processes.
Most versions accept unix, BSD and GNU style options.
# Installation
On most MacOS and Linux installations the ps
command is already available. It can however be installed using the distributions package manager.
|
|
# Use Cases
# Show processes for the current user
|
|
# Show all processes
|
|
# Show processes and include columns
You can print only specific columns if you wish to perform an action with the output like parsing with AWK or filtering with grep.
|
|
For example to count the number of instances of zsh running for the current user.
|
|