pidstat

Show system resource usage, including CPU, memory, IO etc. More information: <https://manned.org/pidstat>.

Install

All systems
curl cmd.cat/pidstat.sh
Debian Debian
apt-get install sysstat
Ubuntu
apt-get install sysstat
Alpine
apk add sysstat
Arch Arch Linux
pacman -S sysstat
image/svg+xml Kali Linux
apt-get install sysstat
CentOS
yum install sysstat
Fedora
dnf install sysstat
Windows (WSL2)
sudo apt-get update sudo apt-get install sysstat
Raspbian
apt-get install sysstat
Docker
docker run cmd.cat/pidstat pidstat powered by Commando

Show system resource usage, including CPU, memory, IO etc. More information: <https://manned.org/pidstat>.

  • Show CPU statistics at a 2 second interval for 10 times:
    pidstat 2 10
  • Show page faults and memory utilization:
    pidstat -r
  • Show input/output usage per process id:
    pidstat -d
  • Show information on a specific PID:
    pidstat -p PID
  • Show memory statistics for all processes whose command name include "fox" or "bird":
    pidstat -C "fox|bird" -r -p ALL

© tl;dr; authors and contributors