system
cmd/system
System information and configuration tools
Overview
system provides system information and configuration tools.
Main subcommands include:
info,memory,disk,drives,uptimehostname,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
| Name | Description |
|---|---|
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
| Code | Meaning |
|---|---|
0 |
Success |
1 |
Runtime/command error |
2 |
Invalid flags/usage |