On 23-May-10 10:52:36, Anthony Anson wrote:
Tired of three-stage shutdown in Tellytubbies Eee, I opened a terminal and tried:
shutdown -h now
Ripost was:
Bash: shutdown: command not found
(Original command taken from The One Page Linux Manual) To save me lots of GPRS-wasted time, does anyone know what the magic words are, pretty please? -- Tony Anson www.girolle.co.uk/
The 'shutdown' command is located at /sbin/shutdown
The directory /sbin is (by default) not in a normal (non-root) user's PATH, so just entering "shutdown -h now" as a normal user will result in "command not found" because the OS won't be looking where it is.
If you do "sudo shutdown -h now" that should work.
Alternatively (which is my preferred method for root operations), you can have a terminal window tucked away somewhere in which you are permanently logged in as root -- the method for achieving that starting as a normal user being
su -
followed by entering root's password at the subsequent prompt.
Then "shutdown -h now" in that window will initiate the shutdown.
As a final wrinkle: I have a little script in /usr/local/bin/down (which is in everyone's path) which just says "shutdown -h now", and the script's permissions are "-rwx------ 1 root root" so that only root can use it. If you set that up, then you can just say
down
(That should be the best way of doing it for Puppy Linux).
Hoping this helps, Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 23-May-10 Time: 12:14:27 ------------------------------ XFMail ------------------------------