Skip to content

uptime command

Show how long the system has been running and the load average.

On this page

Syntax

uptime [options]

Provided by the procps package. Run man uptime for the full manual.

Common options

OptionWhat it does
-pPretty format: "up 3 days, 4 hours"
-sTime the system booted

Examples

  1. Uptime and load

    uptime
  2. Pretty format

    uptime -p
  3. Boot time

    uptime -s
  4. Reboot history

    last reboot | head

Tips

  • The three load numbers are 1, 5 and 15-minute averages; compare them with your CPU count (nproc).

uptime guides

← All Linux commands · Suggest a fix

Back to top