Linux - GeneralThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
View Poll Results: What is your preferred command for shutting down the system?
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.
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.
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.
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.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
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
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.
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.
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.
Code:
$ su -c "init 0"
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.