Error Codes Wiki

Linux "Command Not Found" Error Fix

Informationallinux command

Overview

Fix "command not found" error on Linux. The command is not installed or not in PATH.

Key Details

  • Error: command not found
  • Category: Linux Command Error
  • The command is not available
  • Either not installed or not in PATH

Common Causes

  • Package not installed
  • Command not in $PATH
  • Typo in command name
  • Using root-only command as regular user

Steps

  1. 1Check if installed: which command-name or type command-name
  2. 2Search packages: apt search command-name or yum provides command-name
  3. 3Install it: sudo apt install package-name
  4. 4Check PATH: echo $PATH
  5. 5For /sbin commands: use full path or add to PATH

Tags

linuxlinux-commandlinux command not foundubuntuterminal

More in Linux Command

Frequently Asked Questions

Ubuntu: apt-file search command-name. RHEL: yum provides */command-name.