sys

host module

OS and hardware facts — gatherer fodder: family, osname, arch, cpucount, memory.

use sys — OS and hardware facts (gatherer fodder).

functionsignaturenotes
family() -> stringlinux/windows/macos
os_name() -> stringdistro on Linux
os_version() -> string
kernel_version() -> string
arch() -> string
cpu_count() -> int
total_memory / available_memory() -> intbytes