Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


Search this Thread
Old 12-11-2012, 08:52 AM   #1
LQ Newbie
Registered: Dec 2012
Posts: 3

Rep: Reputation: Disabled
linux problem

how to shut down linux using comand
Old 12-11-2012, 09:01 AM   #2
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,042

Rep: Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761
One is
su -     (or sudo)
shutdown -h
That will shut down the system and turn off the power.

Another is invoking init directly:
su -    (or sudo)
init 0
(that's a zero) which will shut the system down and turn off the power.

See the manual pages for both shutdown and init:
man shutdown
man init
Hope this helps some.

Last edited by tronayne; 12-11-2012 at 09:11 AM.
Old 12-11-2012, 01:46 PM   #3
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
Moved: This thread is more suitable in <Linux - Newbie> and has been moved accordingly to help your thread/question get the exposure it deserves.
Old 12-11-2012, 03:17 PM   #4
LQ Newbie
Registered: Dec 2012
Distribution: Slackware, Debian, Mint
Posts: 4

Rep: Reputation: Disabled
Old 12-11-2012, 08:16 PM   #5
LQ Newbie
Registered: Dec 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Originally Posted by luchosrock View Post
Says system halting and then Halted but power is not shut down,, I tried #poweroff and works. tnks for all your support
Old 12-12-2012, 04:21 AM   #6
Registered: Nov 2012
Location: Bangalore
Distribution: RHEL and Centos
Posts: 80

Rep: Reputation: Disabled

Originally Posted by Malem View Post
how to shut down linux using comand

We can shutdown linux with the following commands


#shutdown -h now

# init 0

For restart

#init 6

# reboot -f

1 members found this post helpful.
Old 12-12-2012, 04:07 PM   #7
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 284
Blog Entries: 7

Rep: Reputation: 43
One last quicky way to shut down linux is to simply press the power button.
Old 12-12-2012, 04:20 PM   #8
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Hi, try,
shutdown -h now
-h = halt
-r = reboot

now = right now! may be a period of time in seconds.

some others,
ctrl alt del = reboot
ctrl alt <-(backspace) = logout


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
Sound Card problem(every time i install linux i have diffirent hardware problem) jacka1l Linux - Newbie 7 08-11-2005 06:10 AM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM

All times are GMT -5. The time now is 08:43 AM.

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