Emergency Help Needed

Rubicone

Senior member
Jan 11, 2001
520
0
0
For some reason I keep getting the "command not found" error message when trying anyone of a number of commands. The most recent being the shutdown one. It has worked up to now but at a loss as to why this is happening. I have checked the permissions on the shutdown command and they are 755. I am logged in as root.

When I type echo $PATH I get the following output to the screeen:

/usr/local/bin:/bin:/usr/bin:/usr/X11R6/:/home/Rubicone/bin

When I issue the which shutdown command the output is:

/usr/bin/which: no shutdown in (within here is the path as noted above)

When I issue the whence shutdown then the aforementioned command not found error message is displayed.
 

Rubicone

Senior member
Jan 11, 2001
520
0
0
Doesn't the echo command simply display what you have written within the quotation marks? Or, will it also change the path?
 

stirling

Member
Oct 29, 2001
127
0
0
That's what the >> is for. It writes it to the end of your .bash_profile.
Forgot, you also need to either login again or resource your .bash_profile with:
prompt>$ . ~/.bash_profile
 

stirling

Member
Oct 29, 2001
127
0
0
basically it's just reinitializing/rereading the file without having to login again. useful when you've just added some environment variable or alias
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
EDIT: content deleted in favor of niceness.

I hope all of your questions were answered. If you need anymore answered, please post them and I will do my best to solve them! :D:D:D:D:D:D:D:D:D