MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm a newbie user, but I want to learn how linux works. I had Mandrake 10 installed then it messed up. So i reinstalled. Now I can't shut down from KDE, so I decided 'hey i'll learn bash'. so when I type 'shutdown now' it get
Quote:
Telling INIT to go to single user mode.
INIT: Going to single user
sh-2.05b#
so then I type shutdown now again and it goes into runlevel 1, then the TERM signal, then it check consoles 1-5 for a picture and changes all the consoles status's to on, it sends the TERM signal again, then gives me the previous quote.
I'm a newbie so anything you ask me to do, if it could be in steps and explained that would be greatly appreciated.
You need to add an extra parameter, depending on whether you want to shut the machine off or reboot it:
shutdown -h now
(h for halt - turns the machine off if you have power management)
shutdown -r now
(r for reboot... 'nuff said)
To learn more about a command, try either "man shutdown" or sometimes "info shutdown". You'll see you can use -k to play a practical joke on everyone using your computer too
Now I feel really stupid, I've typed the command shutdown multiple times, and I've read all the parameters, yet I never got that you had to add anything else. Now, for another probably very obvious and stupid question. Can you run shutdown -h now as a regular user, or do you have to be root?
I believe you do need to be root to run it successfully, although most setups include a shutdown command as the "ctrl-alt-delete" handler in /etc/inittab. The only catch here is that you have to be in console mode (so if you want to reboot your system without logging in as root, press ctrl-alt-f1, then ctrl-alt-delete).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.