The error “Command not found” means that the command isn’t in your search path.

When you get the error “Command not found,” it means that the computer searched everywhere it knew to look and couldn’t find a program by that name.

You can control where the computer looks for commands, however. So “Command not found” doesn’t necessarily mean that the program isn’t anywhere on the system. It may just mean that you didn’t give the computer enough information to find it. Before you ask your administrator for help, there are a few things you can do:

  • Check the name of the command and confirm that you didn’t make a typo on the command line.

  • Make sure that the command is installed on the system.

  • If the command is installed on your system, make sure the computer knows where to look.

Get WYNTK: UNIX System Admininistrator now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.