LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-10-2004, 07:10 PM   #1
MikeZila
Member
 
Registered: Jul 2004
Location: /home/mikezila
Distribution: Slackware
Posts: 377

Rep: Reputation: 30
Shutdown command?


I know this is a dumb problem to have, but I don't know the command to shutdown a Linux box from the console. I always just hit Crl+Alt+Del, waited for it to reboot to the boot loader, and then hit the power switch. I realized that I didn't know the command when my buddy was sitting at my computer and asked me how to turn it off. It was a little embarassing to have to say "I don't know."

Please advise.
 
Old 07-10-2004, 07:28 PM   #2
DropSig
Member
 
Registered: Apr 2004
Location: East of Quebec
Distribution: Ubuntu, Centos
Posts: 208

Rep: Reputation: 30
the command is "shutdown". Do man shutdown for detail
 
Old 07-10-2004, 07:29 PM   #3
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
shutdown -h now

that should do the trick.

<edit>i'm always finishing the race last. guess it's ok, as long as i finish. </edit>

Last edited by Peacedog; 07-10-2004 at 07:31 PM.
 
Old 07-10-2004, 10:25 PM   #4
p-static
Member
 
Registered: Jul 2004
Distribution: Gentoo
Posts: 101

Rep: Reputation: 15
Don't be embarrassed, i've heard at one point that Linus Torvalds himself once asked the same question.
 
Old 07-10-2004, 10:53 PM   #5
MikeZila
Member
 
Registered: Jul 2004
Location: /home/mikezila
Distribution: Slackware
Posts: 377

Original Poster
Rep: Reputation: 30
Really? Wow. Sort of like Henry Ford asking "So. How do we start this auto-mo-bile?"

Thanks.
 
Old 07-27-2008, 01:44 AM   #6
praveen_b744
LQ Newbie
 
Registered: Oct 2006
Posts: 12

Rep: Reputation: 0
init 0 -> for shutdown
init 6 -> for restart
 
Old 07-27-2008, 05:33 PM   #7
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,900

Rep: Reputation: 261Reputation: 261Reputation: 261
if shutdown don't work try halt -p or halt -P, can't remember which. it worked on my slack12.0 installation
 
Old 07-27-2008, 06:09 PM   #8
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
I like "shutdown -r now" for the reboot function
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 command xviddivxoggmp3 Red Hat 5 05-12-2004 05:48 PM
shutdown command mikedelo Linux - Software 7 03-15-2004 09:37 AM
shutdown command Oakstaff Linux - Newbie 8 11-18-2003 10:47 PM
shutdown command nelly_boy Linux - Software 11 08-03-2003 07:04 AM
Shutdown Command? AMDPwred Linux - General 1 01-25-2002 09:43 PM


All times are GMT -5. The time now is 03:23 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration