Hi
What is the best way to reboot a Linux computer?
i) Press the power switch
ii) type 'init 6' as any user, then enter the root password when prompted
iii) Pour metal filings in the top of the computer.
iv) su to root then type 'init 6'
Hi
What is the best way to reboot a Linux computer?
i) Press the power switch
ii) type 'init 6' as any user, then enter the root password when prompted
iii) Pour metal filings in the top of the computer.
iv) su to root then type 'init 6'
Or you could just type
reboot
as root.
halt
poweroff
reboot
shutdown
Well, you got 1/4 correct. He asked the best way to 'reboot'.
i typically use
shutdown -y -g0 -i6
I don't know if that's correct or not...it's just what I've gotten used to.
if you use gnome
gnome-power-cmd.sh reboot
as plain user
The "reboot" command may differ from one system to the other.
On Solaris (and also some Linux systems) you also can directly use the "init [0123456] commands, but beware: "init 5" means something else on Solaris as in Linux.
Cheers, A