commands
uptime — Inspect system uptime
Report uptime and, in default output, load averages. Load average is not CPU utilization; container output may reflect host-level state. The example verifies the pretty-format prefix without publishing host details. Use a fresh private workspace; this example does not start a server.
Formal Syntax & Structure
linux syntaxlinux
uptime [-p]Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| -p | option | Pretty uptime format |
Return Value
exit status and output
Prints current uptime and, in ordinary output, load averages and other system information. Successful reporting is an observation, not a health threshold or CPU utilization measurement.
Working Example
Example Snippetlinux
uptime -p | awk '$1=="up" {print "uptime reported"}'