Path Is Not Correct
Another major reason you get the “bash command not found” error is that the path it is looking for is incorrect. When a user enters a command, the system searches it for in all locations it knows and when it does not find the command in the searched locations, it returns the error.
Why am I getting command not found?
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. ... 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.
How do I fix Linux command not found?
In short, look for the following to fix “ bash: bashtop: command not found “:
- Make sure the shell PATH variable correctly set and verify your PATH environment variable.
- Verify that the file you want to execute or run exists on the Unix or Linux box.
- Some commands need to run as the superuser (root user).