aos system
Session power state: lock, sleep, restart, shutdown, logout
6 commands. Run aos system --help for the same list from the binary, or see every group.
Session and power state. info prints OS and hardware facts and works everywhere. lock, sleep, logout, restart and shutdown do exactly what they say with no confirmation, so an agent should check with the person before the last three.
Commands
Section titled “Commands”aos system info
Section titled “aos system info”Print OS, host, and hardware facts
aos system infoaos system infoaos system lock
Section titled “aos system lock”Lock the screen
needs a display alias: aos lock
aos system lockaos system lockaos system logout
Section titled “aos system logout”Log the current user out
needs a display
aos system logoutaos system logoutaos system restart
Section titled “aos system restart”Restart the machine
aos system restartaos system restartaos system shutdown
Section titled “aos system shutdown”Power the machine off
aos system shutdownaos system shutdownaos system sleep
Section titled “aos system sleep”Put the machine to sleep
aos system sleepaos system sleep