"Command not found" usually occurs when bash shell start-up files have been deleted.
To fix this follow these steps: