Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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. |
|
|
View Poll Results: What is your preferred command for shutting down the system?
|
|
sudo init 0
|
  
|
8 |
13.79% |
|
sudo halt
|
  
|
11 |
18.97% |
|
sudo /etc/init.d/halt stop
|
  
|
1 |
1.72% |
|
sudo shutdown -H now
|
  
|
40 |
68.97% |
 |
|
12-01-2010, 09:15 AM
|
#16
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,141
|
I almost never power my systems off in the normal meaning of the word. I just press the power button and my systems go to hibernation. But if I want to do it I use my openbox menu or do sudo poweroff.
|
|
|
|
12-01-2010, 01:24 PM
|
#17
|
|
Member
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642
Rep: 
|
shutdown -h now without sudo because I'm using arch
BTW, I noticed some members say they just press the power button to shutdown the system, but isn't this bad? Linux needs to unmount filesystems and sync disks and etc before quiting.
I remember back in the mid 90s when I once in awhile press the power button off. And when I went to turn on the computer I was confronted with the fsck message because linux didn't shutdown properly.
Those of you who just press the power off button, do you get the fsck message when you turn on the computer again?
If not, it's probably because the filesystem of today is more robust than that from the early to mid 90s. Just my guess.
|
|
|
|
12-01-2010, 02:17 PM
|
#18
|
|
Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,595
|
Technically I can press the power button and it will shutdown normally and without filesystem errors (regular shutdown), it's only if I hold the button down that it will shutdown in a bad way.
|
|
|
|
12-01-2010, 02:27 PM
|
#19
|
|
Senior Member
Registered: Oct 2004
Posts: 1,188
Rep: 
|
No, it's because these people have acpi configured. When you press the power button it initiates a normal shutdown procedure. To force a hardware shutdown you have to hold the power button for 3 seconds.
My laptop is configured to hibernate if you press the power button, so I use it. The desktop stays on all the time, it only gets restarted for kernel updates.
|
|
|
|
12-01-2010, 03:36 PM
|
#20
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,141
|
Quote:
Originally Posted by dv502
shutdown -h now without sudo because I'm using arch
|
That means that you don't need root-privilegues in Arch? Or that you are working as root?
|
|
|
|
12-01-2010, 04:43 PM
|
#21
|
|
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 2,900
|
Quote:
Originally Posted by mlangdn
I remember using "park".
|
haha yeah i remember that too, i forget which version of DOS that was or if PARK was an external command specific to machines older then self parking hard drives
back on topic i use poweroff
|
|
|
|
12-01-2010, 04:47 PM
|
#22
|
|
Senior Member
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,019
Rep: 
|
I like to stay up on the latest technology; I use the PowerButton.
|
|
|
|
12-01-2010, 05:25 PM
|
#23
|
|
Member
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 385
Rep:
|
i don't use neither of those :
I let GNOME do the hard job for me 
|
|
|
|
12-01-2010, 05:48 PM
|
#24
|
|
Member
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642
Rep: 
|
Quote:
Originally Posted by TobiSGD
That means that you don't need root-privilegues in Arch? Or that you are working as root?
|
I think you misunderstood my post or I didn't give the whole picture.
When I said I use shutdown -h now, this is after I log in as root.
I do everything as a regular user and when I'm ready to shutdown, I log in as root and type the command above.
I could give my regular user the privilege to shutdown the machine, but I won't because I'm old school. I like to follow the old tradition of unix where root is the almighty and regular users are just users with limited privileges.
- Cheers
Last edited by dv502; 12-01-2010 at 06:11 PM.
|
|
|
|
12-02-2010, 05:49 AM
|
#25
|
|
Senior Member
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Original Poster
Rep:
|
I technically wouldn't recommend sudo /etc/init.d/halt stop as it would halt the system *IMMEDIATELY* without shutting down system daemons/services first, which in turn crashes those apps and can cause loss of data.
And sudo init 0 initializes the system to runlevel 0, which basically shuts down the system. sudo halt does the same thing as well.
In my opinion, it's all a matter of personal preference.
|
|
|
|
12-02-2010, 05:38 PM
|
#26
|
|
Member
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Rep: 
|
I don't have sudo on my system (I prefer to actually remember my root password TYVM  ), but I do use init 0 if I want to shut down from the CLI as root (or init 6 to reboot). Easier to type that way, I think.
Most of the time, though, I do it from Xfce: Quit->Shutdown ("Quit" is the button on the very right side of the Xfce panel).
Last edited by MrCode; 12-02-2010 at 05:41 PM.
Reason: su-ing to root from root...department of redundancy department :-P
|
|
|
|
12-02-2010, 08:27 PM
|
#27
|
|
Member
Registered: Mar 2010
Location: Western Maine
Distribution: PCLinuxOS (LXDE)
Posts: 467
Rep:
|
I use a power button.
|
|
|
|
12-02-2010, 08:36 PM
|
#28
|
|
Member
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian Wheezy, Siduction current and some Kubuntu
Posts: 402
Rep:
|
K menu > Leave > Shutdown. Why do in 15-20 clicks what I can do in 3?
|
|
|
|
12-02-2010, 10:01 PM
|
#29
|
|
Senior Member
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Original Poster
Rep:
|
And has anybody commented on /etc/init.d/halt stop yet?
|
|
|
|
12-02-2010, 10:03 PM
|
#30
|
|
Senior Member
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Original Poster
Rep:
|
Quote:
Originally Posted by Timothy Miller
K menu > Leave > Shutdown. Why do in 15-20 clicks what I can do in 3?
|
Not clicks, keystrokes. There's a difference.
|
|
|
|
| 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 04:15 PM.
|
|
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
|
|