LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   path to shutdown (https://www.linuxquestions.org/questions/linux-general-1/path-to-shutdown-4586/)

matt 07-22-2001 10:15 AM

path to shutdown
 
That did the trick. It's strange how even if you're in /sbin (where the command is), that you still have to type "/sbin/shutdown now" to make the command work.

Thanks again!

acid_kewpie 07-22-2001 12:17 PM

that'll be because a) /sbin isn't on your path and . isn't either.

punt 07-22-2001 06:33 PM

yeah, and it's not recommended to put sbin or . in your path. that would be bad. :)

jharris 07-22-2001 07:08 PM

Quote:

Originally posted by punt
yeah, and it's not recommended to put sbin or . in your path. that would be bad. :)
Now the reason for not putting . in your path is pretty well known, but why not sbin?? After all its a directory that typicall hold system binaries that should be only writable by root hence should be trusted, it this isn't the case then I think you'll have more problems than just your path!

Cheers

Jamie...

DavidPhillips 07-23-2001 07:20 PM

I don't know how you got it that way, but /sbin is always in root's path on the default installs that I have done. If it were not it would be a pain using various commands.


All times are GMT -5. The time now is 02:39 AM.