Command Not Found: You’ve been having a good day up till now
When you type a common command in unix, it could be
ls or last or who or grep or in my case rmate when low and behold, a response:
bash: Command not Found
This is very annoying and is often the case where there are multiple root users on a server. There are 2 reasons for this problem:
1. Someone has removed the link to the directory to run the particular command usually found in:
2. Some has modified the path.
First of all check you path variable with:
if this is the problem and you know where the link to the directory is use:
To append the new location or
To set the new path.
An extremely annoying occurrence, especially when someone has done it undenounced to you and now you have to fix it.
If you are not on debian you may want to look at cyberciti linux tutorials.