How to Fix bash: collectl: command not found in Minimal Linux Distributions

The collectl utility is an all-in-one performance monitoring tool capable of capturing detailed system metrics including CPU utilization, memory allocation, network throughput, disk I/O, InfiniBand, and Lustre filesystems simultaneously. On minimal Linux distributions, stripped container base images, and cloud server instances, collectl is omitted by default, producing the bash: collectl: command not found error when executing comprehensive performance benchmarks.

Install collectl on Debian, Ubuntu, and Derivatives

On Debian-based systems, collectl is maintained in the standard software universe repositories:

  1. Update your local package lists:
    sudo apt update
  2. Install the collectl package:
    sudo apt install -y collectl
  3. Confirm successful installation and run interactive monitoring:
    which collectl
    collectl

Install collectl on RHEL, AlmaLinux, Rocky Linux, and Fedora

On enterprise Linux distributions, collectl is available directly or through the EPEL repository:

  1. Enable EPEL on RHEL or compatible enterprise clones:
    sudo dnf install -y epel-release
  2. Install collectl using DNF:
    sudo dnf install -y collectl
  3. On Fedora systems, run sudo dnf install -y collectl directly.

Common Usage Commands and Subsystem Monitoring

Utilise targeted collectl flags to capture specific subsystem telemetry in real time:

  • Monitor CPU, network, and disk performance concurrently:
    collectl -s cnd
  • Inspect process-level top consumers:
    collectl --top
  • Export high-resolution performance metrics to raw log files for subsequent analysis:
    collectl -f /var/log/collectl/metrics -P

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.