PDA

View Full Version : [ubuntu] CLI - restarting/shut down/lockscreen



adamogardner
June 28th, 2008, 03:51 AM
how does one restart/shutdown/and lockscreen respectively, from the terminal?

luisito
June 28th, 2008, 03:54 AM
Try all the scripts in /etc/acpi/

ChompTheMan
June 28th, 2008, 03:55 AM
To shutdown in the CLI just type shutdown. If you want to reboot, then shutdown -r. Not sure about lockscreen.

luisito
June 28th, 2008, 03:56 AM
Actually to reboot is
reboot

to shutdown
shutdown now

to turn off screen
/etc/acpi/screenblank.sh

webofunni
June 28th, 2008, 04:06 AM
In Ubuntu Hardy Following will lock screen :


gnome-screensaver-command --lock

sam_delta
June 28th, 2008, 04:21 AM
the following will also work

to shut down

sudo init 0

to restart

sudo init 6

sam

dwhitney67
June 28th, 2008, 04:54 AM
[post deleted].