command not found

The error bash prints, with exit status 127, when a command name matches no alias, function, builtin or file on PATH.

In more detail

It usually means a typo, a program that is not installed, or a PATH that lacks its directory, as happens under cron. Status 126 is the neighbouring case: the file was found but cannot be executed.

Related terms

Taught in

References