Shuting computer down in bash shell
Is there a bash command that shuts the computer down? like the command reboot for rebooting the system?
|
Take your pick. See man pages:
shutdown halt poweroff |
shutdown -h now
|
zdravo zWaR oz Uroš jan tu :)). You can try also as super user this command /sbin/init 0
:) |
You generally need to be root to execute the shutdown command, unless you change it's permissions/setup sudo.
the path is /sbin/shutdown so as root /sbin/shutdown -r now - reboots /sbin/shutdown -h now - shutsdown or use sudo, the now switch can also be changed to give a timed reboot etc. |
All times are GMT -5. The time now is 04:46 PM. |