Mistyping Commands
If you type a command the UNIX shell doesn’t understand, it says that it can’t find the command. The reason is that it looks high and low for a file with the name you just typed, hoping to find the program you want to run. And then it says
eatmylunch: Command not found.
Or perhaps it says
eatmylunch: not found
The exact wording varies from shell to shell (we bet that you already guessed that). To make sure that you type a command properly:
Check your spelling (as always). You may have typed a correctly spelled English word rather than the garbled set of letters that comprise the name of the program.
Check your capitalization and spacing. Capital and small letters count as completely different things in filenames and, therefore, in commands. Nearly every command uses only small letters. Spaces matter, too, and if a command really is called eatmylunch , the more English-looking eat my lunch won’t do.
Change directories (maybe). You may have given the right command, but UNIX may not know where to look for the file containing the program. If you know where the program file is, move to that directory and give the command again. If you don’t know where the file is, either look for it (as described in Chapter 22) or give up and ask your system administrator or local wizard.