command not found

Linux Shell

The shell cannot find the command you tried to run — either the program is not installed, or its location is not in the PATH environment variable.

Check your exact device first. Codes and procedures vary by model and software version. Back up important files before recovery. Stop if a device is overheating, smells burnt, or has a swollen battery.

CHOOSE HOW YOU WORK

Clear help. Useful detail.

Start with the checks below. Tick a step after you try it, and keep a note of what changed. You can stop as soon as the original task works.

What can cause it?

  • Program not installed
  • Binary location not in PATH
  • Typo in command name
  • Script missing execute permission

What to try

Work through one step at a time
Your troubleshooting progress0 steps tried
  1. Install the Missing Program

    On Ubuntu/Debian: sudo apt install programname. On Fedora: sudo dnf install programname. On Arch: sudo pacman -S programname

  2. Check if it is Installed Elsewhere

    Run: which programname or whereis programname to check if the binary exists but is not in PATH.

  3. Fix PATH Variable

    If a program is installed but not found, add its directory to PATH: export PATH=$PATH:/path/to/program/bin — add this to ~/.bashrc or ~/.zshrc for persistence.

  4. Check for Typos

    Verify you spelled the command correctly. Linux command names are case-sensitive.

How did it go?

Test the original task again. A completed checklist doesn’t by itself mean the problem is fixed.

If the error comes back

Record the full error, your exact model, software version, and the steps you tried. Share these with the manufacturer or a qualified technician. A repeated code needs a diagnosis, especially if it involves storage, heat, or power.

Find the instructions for your model

Linux Shell official support

This is a general support link. This reference guide has not been checked against a model-specific source in this update.