Skip to content

aos process

Running processes: list, find, kill

3 commands. Run aos process --help for the same list from the binary, or see every group.

Running processes. list and find filter by substring and have --json. kill takes a pid, or a name when exactly one process matches; with several matches it refuses and lists them. --force sends a signal the process cannot ignore.

Find processes whose name contains a substring

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

Terminal window
aos process find <name> [--json]
flag values meaning
<name> Required positional argument
--json Optional
Terminal window
aos process find Chrome
aos process find node --json

Kill a process by pid, by name when it is unambiguous, or by the port it listens on

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

Terminal window
aos process kill <pid|name> [--force] | --port=<n> [--force]
flag values meaning
<pid|name> One of these is required
--force Optional
--port <n> One of these is required
Terminal window
aos process kill 4821
aos process kill Calculator
aos process kill Calculator --force
aos process kill --port=8080

List running processes

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

Terminal window
aos process list [--filter=<substring>] [--sort=cpu|mem|name|pid] [--top=<n>] [--json]
flag values meaning
--filter <substring> Optional
--sort cpu, mem, name, pid Optional
--top <n> Optional
--json Optional
Terminal window
aos process list
aos process list --filter=chrome
aos process list --sort=mem --top=5
aos process list --sort=cpu --top=10 --json