LinuxCommandLibrary

uptime

Show how long the system has been running

TLDR

Print current time, uptime, number of logged-in users, and other information

$ uptime
copy

Show only the amount of time the system has been booted for
$ uptime [[-p|--pretty]]
copy

Print the date and time the system booted up at
$ uptime [[-s|--since]]
copy

Display the time data in seconds
$ uptime [[-r|--raw]]
copy

Display version
$ uptime [[-V|--version]]
copy

SYNOPSIS

uptime [options]

PARAMETERS

-p, --pretty
    Show uptime in pretty format

-s, --since
    Show when system started

DESCRIPTION

uptime displays how long the system has been running, the number of logged-in users, and the system load averages for the past 1, 5, and 15 minutes.

CAVEATS

Load averages include processes in uninterruptible sleep. Interpretation of load depends on number of CPUs.

SEE ALSO

top(1), w(1), who(1), last(1)

Copied to clipboard