LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 12-11-2012, 08:52 AM   #1
Malem
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
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,008

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

Another is invoking init directly:
Code:
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:
Code:
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
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,438
Blog Entries: 2

Rep: Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001
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
luchosrock
LQ Newbie
 
Registered: Dec 2012
Distribution: Slackware, Debian, Mint
Posts: 4

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

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by luchosrock View Post
Code:
$su
#halt
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
bala.linuxtech
Member
 
Registered: Nov 2012
Location: Bangalore
Distribution: RHEL and Centos
Posts: 80

Rep: Reputation: Disabled
Cool

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

We can shutdown linux with the following commands

#halt

#shutdown -h now

# init 0

For restart

#init 6

# reboot -f


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

Rep: Reputation: 41
One last quicky way to shut down linux is to simply press the power button.
 
Old 12-12-2012, 04:20 PM   #8
GlennsPref
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,
Code:
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
 
  


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
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 04:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration