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

The picocom utility is a lightweight, low-overhead serial communication program frequently used by embedded engineers to connect to ESP32 boards, microcontrollers, Raspberry Pi UART headers, and network consoles. Minimal Linux distributions, server images, and container environments omit serial tools by default, returning bash: picocom: command not found.

Install picocom via Native Package Managers

The picocom binary is available across all primary Linux distribution package repositories:

  • Ubuntu and Debian:
    sudo apt update && sudo apt install -y picocom
  • Arch Linux:
    sudo pacman -S picocom
  • Fedora, CentOS Stream, and RHEL:
    sudo dnf install -y epel-release && sudo dnf install -y picocom
  • Alpine Linux:
    sudo apk add picocom

Grant Dialout Group Permissions for Serial Hardware

Direct communication with serial devices requires read and write permissions to the character device nodes:

  1. On Debian and Ubuntu, add your current user to the dialout group:
    sudo usermod -aG dialout $USER
  2. On Arch, Fedora, and openSUSE, add your user to the uucp group:
    sudo usermod -aG uucp $USER
  3. Apply group membership without logging out:
    newgrp dialout

Verify Installation and Open a Serial Session

Confirm the binary is accessible in your system PATH and establish a connection:

  1. Verify installation:
    which picocom && picocom --help
  2. Connect to a serial interface at a standard 115200 baud rate:
    picocom -b 115200 /dev/ttyUSB0
  3. To exit a picocom session gracefully, press Ctrl + A followed by Ctrl + X.

Get the best tech tips delivered straight to your inbox.

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