system

cmd/system

System information and configuration tools

Overview

system provides system information and configuration tools.

Main subcommands include:

  • info, memory, disk, drives, uptime
  • hostname, env, date, config

Example usage:

system info
system memory
system disk
system drives
system hostname
system date
system config vm.swappiness

Usage

  • system <subcommand> [options] [args]

Subcommands

NameDescription
info Show general system information
memory Show memory and swap usage
disk Show disk usage by mountpoint
drives Show drives and partitions with capacity/usage
uptime Show uptime and boot time
hostname Get or set hostname
env Get or set environment variables
date Show formatted date/time
config Read/write kernel parameters (sysctl-style)

Exit Codes

CodeMeaning
0 Success
1 Runtime/command error
2 Invalid flags/usage