Originally Posted by cybrax
I tried the same ie "sudo yum install wget"
Installed wget, but still I get the same error when I use wget. Can someone sort this problem out for me,thanks
Try in the same terminal:
if that listing of directories doesn't contain this particular one (among some other ones): /usr/bin
then that's the problem. I don't see how that could happen since /usr/bin is one
of the most critical ones to have and it's set up by defauilt.
You can verify that any command in general is path reachable by using which , try:
it should say:
By the way, what assen is saying is that just installing a new package might not be enough, the
shell you are in only scans the path for exe's when it was started. You then installed wget after
that shell was started so it doesn't have wget on the path listing. The shell uses the list of exes
it found on the PATH at startup time because it's faster than doing that redundantly each time you
run a command. So it's probably saying "Command not found"
when you try to run wget. So opening a new terminal window will refresh that so wget is on
the path hash.