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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
View Poll Results: What is your preferred command for shutting down the system?
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.
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.
$ 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