Skip to content

aos system

Session power state: lock, sleep, restart, shutdown, logout

10 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. thermal prints how hard the OS is throttling to stay cool (macOS: nominal, fair, serious, critical) and the temperatures it exposes: the battery on macOS, where die temperatures sit behind the private SMC, and every thermal zone on Linux. Windows keeps temperatures behind WMI, so thermal is not offered there. load samples CPU for half a second and prints busy % overall and per core plus the 1/5/15-minute load averages (Windows has none); uptime prints how long the machine has been up and when it booted. memory reports total, used, available and free RAM plus swap; available is the number that answers “how much memory is left”, since idle RAM is used as cache and free is usually small.

Print OS, host, and hardware facts

Under WSL / SSH: runs inside WSL (where aos was started). How the host works

Terminal window
aos system info
Terminal window
aos system info

Print CPU busy % overall and per core, and load averages

Under WSL / SSH: runs inside WSL (where aos was started). How the host works

Terminal window
aos system load [--json]
flag values meaning
--json Optional
Terminal window
aos system load
aos system load --json

Lock the screen

needs a display alias: aos lock

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos system lock
Terminal window
aos system lock

Log the current user out

needs a display

Under WSL / SSH: runs inside WSL (where aos was started). How the host works

Terminal window
aos system logout
Terminal window
aos system logout

Print total, used, available and free RAM, and swap

Under WSL / SSH: runs inside WSL (where aos was started). How the host works

Terminal window
aos system memory [--json]
flag values meaning
--json Optional
Terminal window
aos system memory
aos system memory --json

Restart the machine

Under WSL / SSH: runs inside WSL (where aos was started). How the host works

Terminal window
aos system restart
Terminal window
aos system restart

Power the machine off

Under WSL / SSH: runs inside WSL (where aos was started). How the host works

Terminal window
aos system shutdown
Terminal window
aos system shutdown

Put the machine to sleep

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos system sleep
Terminal window
aos system sleep

Print the thermal state (throttling) and temperatures the OS exposes

darwin · linux only

Under WSL / SSH: runs inside WSL (where aos was started). How the host works

Terminal window
aos system thermal [--json]
flag values meaning
--json Optional
Terminal window
aos system thermal
aos system thermal --json

Print how long the machine has been up and when it booted

Under WSL / SSH: runs inside WSL (where aos was started). How the host works

Terminal window
aos system uptime [--json]
flag values meaning
--json Optional
Terminal window
aos system uptime
aos system uptime --json