I'm done here!
What is your preferred command for shutting down the system? Please explain your votes.
|
I never use sudo, only su and sometimes su -
shutdown -H now fills the bill. |
Ctrl-Alt-Del which runs 'shutdown -h now'. No, I don't use sudo.
|
that's not a common behavior.. ctrl + Alt + Del on most distro's executes "shutdown -r now", not "-h".
|
shutdown -h now, if I'm in runlevel 3.
KDE main menu -> Leave -> Shutdown, if I'm in runlevel 4. |
I just press the power button on the front of my case. ACPI does the rest.
|
Quote:
|
Code:
poweroff |
Changed the /etc/inittab and ctrl+alt+del powers the pc off.
|
shutdown -h if I am trying to impress someone otherwise just the powerbutton.
|
Quote:
|
I remember using "park".
|
My power button is under a panel, and is hard to reach, that's why I use Ctrl-Alt-Del. This combo also exits fluxbox.
|
sudo??
I use ctrl-alt-del most of the time. Inittab entry is changed to: ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -h now, besides root, only 1 other user has the power to shut down the system. @mlangdn: park, I remember that command too!! @H_TeXMeX_H: Happy birthday to you, happy birthday to you, happy .........! |
heh, thanks
|
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. |
Quote:
|
Quote:
back on topic i use poweroff |
I like to stay up on the latest technology; I use the PowerButton.
|
i don't use neither of those :
I let GNOME do the hard job for me ;) |
Quote:
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 |
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 :rolleyes:), 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" |
I use a power button.
|
K menu > Leave > Shutdown. Why do in 15-20 clicks what I can do in 3?
|
And has anybody commented on /etc/init.d/halt stop yet?
|
Quote:
|
If I'm using Slackware, su to root and shutdown now or shutdown now -H depending on whether the computer understands -H.
If I'm using something with a graphical login screen (Debian, Ubuntu), I use the menu. I use sudo only if I have no choice. I'm an su kind of guy. |
Quote:
So I still maintain 3 clicks is easier than 15. |
I use "sudo shutdown -h now", and even configured sudo not to require a password for the shutdown command. But I should probably use the power button, I guess it's time to get acpi working.
Anyway, in older computers, the power button actually switched off power the the computer. Now it notifies the OS, which can choose what to do. |
Quote:
|
Your poll is missing an entry...
Desktop Power Control. All the desktops and even the login screens provide a method to poweroff laptops and desktops. On the other hand servers do not provide that capability (for obvious reasons). You are also missing the very obvious "poweroff" command!!!! which of course could be using ANY of the polled command line methods. |
Usually for me I end up watching a movie when I fall asleep. So I use shutdown -h -P 120 (or however many minutes are left in the movie.)
|
Halt gets the job done.
|
Tend not to issue shutdown commands from a terminal on my local PC any more.
Always have many ssh sessions open to critical servers, only one key away from an oops moment ;) |
Quote:
|
shutdown -h now : is the proper way to shutdown a server. Because the shutdown command will wait until the process is getting finished and proceed to shutdown the server
init 0 : This command is logically to tell the Operating environment to switch the runlevel. This will kill all the process with out wait. halt : To shutdown the server Immediately. poweroff : Just crash the FS and other sensitive process and power off the hardware. Issuing "shutdown -h now" command is the best practice for production environment Thanks :hattip: |
Quote:
|
Quote:
|
I've heard of warnings: Always read the small print, but that's ridiculous!
|
Hi,
Quote:
Quote:
init 0 also produces a clean shutdown. BTW: Shouting doesn't make it so! |
What a fantastic thread!
|
I use (su -) shutdown -h +1. :)
|
from kde
su -c init 0 alt ctl del, then switch off the power as soon as i hear the click of the stopped hard drive Back when i used Gentoo and manually startx'ed into kde i wrote /bin/init.sh (the real init is /sbin/init) Code:
#!/bin/bash |
I like the simplicity of 'halt.'
Somehow I can't shake the idea now that "Issuing 'shutdown -h now' command is the best practice for production environment." It's inexplicable. ;) |
Sorry H_TeXMeX_H, For making big fonts :(
foodown If you are really experienced and you know what you are doing with commands, then you are right :). Because its your experience and your understanding about the halt commands. Its not inexplicable, because situations varies up on using commands(shutdown or halt) Who ever want to use their commands can use. But before that please read the man page one. :D Thanks :hattip: |
Quote:
I was just trying to make light of the big fonts situation. For the record, you are correct in your assertion (I think). @Kenny: Out with it already! What more are you dying to share with us about '/etc/init.d/halt stop'? :) |
All times are GMT -5. The time now is 08:09 PM. |