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