LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-16-2004, 06:42 PM   #1
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
'shutdown now' problems


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.
 
Old 09-16-2004, 07:08 PM   #2
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
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
 
Old 09-17-2004, 09:03 PM   #3
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
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?
 
Old 09-18-2004, 01:09 PM   #4
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
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).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shutdown problems dragost Mandriva 2 04-01-2005 05:23 PM
shutdown problems LYK Linux - Laptop and Netbook 3 05-28-2004 08:13 PM
shutdown problems h0p3sf411 Mandriva 10 03-07-2004 03:16 PM
shutdown problems u02gtt Linux - Newbie 0 04-15-2002 04:09 AM
shutdown problems oxman Linux - Newbie 2 04-14-2002 10:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration