uptime(1)

uptime1

Show how long system has been running

Usage

uptime [--libxo]

Overview

The uptime utility displays the current time, the length of time the system has been up, the number of users, and the load average of the system over the last 1, 5, and 15 minutes.

The following options are available:

--libxo

Generate output via libxo(3) in a selection of different human and machine readable formats. See xo_options(7) for details on command line arguments.

Examples

$ uptime
11:23AM  up  3:01, 8 users, load averages: 21.09, 15.43, 12.79

Releases

163 releases since Mac OS X 10.0; the text changed 6 times.

  1. 10.0–10.0.4
  2. 10.1–10.1.5
  3. 10.2–10.2.8
  4. 10.3–10.4.11
  5. 10.5–14.3
  6. 14.4–26.3
  7. 26.4–26.5

--libxo since macOS 26.4.

History

The uptime command appeared in 3.0BSD.

From shell_cmds 329 in macOS 26.5. Parsed by carta from the page's mdoc source.