System control

Lock screen

>_ dbus-send --type=method_call --dest=org.freedesktop.ScreenSaver /ScreenSaver org.freedesktop.ScreenSaver.Lock
copy

Unlock screen

>_ dbus-send --type=method_call --dest=org.freedesktop.ScreenSaver /ScreenSaver org.freedesktop.ScreenSaver.SetActive boolean:false
copy

Reboot the system

>_ reboot
copy
>_ shutdown -r
copy

Shutdown the system

>_ shutdown -h now
copy
>_ reboot -p
copy

Shutdown the system at specific time

>_ shutdown -h 18:45 "Server is going down for maintenance"
copy

Stop bluetooth service

>_ service bluetooth stop
copy

Start bluetooth service

>_ service bluetooth start
copy

Stop wifi service

>_ nmcli nm wifi off
copy

Start wifi service

>_ nmcli nm wifi on
copy

Turn off monitor

>_ xset dpms force off
copy
Copied to clipboard
free 100$ digital ocean credit