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!
|
All times are GMT -5. The time now is 08:26 AM. |