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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-11-2012, 08:52 AM
|
#1
|
|
LQ Newbie
Registered: Dec 2012
Posts: 3
Rep: 
|
linux problem
how to shut down linux using comand
|
|
|
|
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: 2,504
|
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.
|
|
|
|
12-11-2012, 01:46 PM
|
#3
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware, Debian
Posts: 12,524
|
Moved: This thread is more suitable in <Linux - Newbie> and has been moved accordingly to help your thread/question get the exposure it deserves.
|
|
|
|
12-11-2012, 03:17 PM
|
#4
|
|
LQ Newbie
Registered: Dec 2012
Distribution: Slackware, Debian, Mint
Posts: 4
Rep: 
|
|
|
|
|
12-11-2012, 08:16 PM
|
#5
|
|
LQ Newbie
Registered: Dec 2012
Posts: 3
Original Poster
Rep: 
|
Quote:
Originally Posted by luchosrock
|
Says system halting and then Halted but power is not shut down,, I tried #poweroff and works. tnks for all your support
|
|
|
|
12-12-2012, 04:21 AM
|
#6
|
|
Member
Registered: Nov 2012
Location: Bangalore
Distribution: RHEL and Centos
Posts: 79
Rep: 
|
Quote:
Originally Posted by Malem
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.
|
12-12-2012, 04:07 PM
|
#7
|
|
Member
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 236
Rep:
|
One last quicky way to shut down linux is to simply press the power button.
|
|
|
|
12-12-2012, 04:20 PM
|
#8
|
|
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,142
Rep: 
|
Hi, try,
-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 |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:08 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|