Why don't certain commands work outside of dir?
I have just recently installed RHEL 5. I am in the process of updating my system, when I ran into a fairly weird situation. Many commands weren't working.
The following is just one example, but it works for most commands.
I could enter something like "man useradd" and the manual would come up. I could also use "locate useradd" and it would give me /usr/sbin/useradd. The problem is that when I actually type "useradd" I get "bash: useradd: command not found."
But if I go to /usr/sbin/ and type "./useradd" the command works fine.
What is the problem?
|