LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

uptime

Show system uptime and load averages

TLDR

Show system uptime and load averages
$ uptime
copy
Show uptime in pretty format
$ uptime -p
copy
Show when the system was booted
$ uptime -s
copy

SYNOPSIS

uptime [options]

DESCRIPTION

uptime displays how long the system has been running, the number of users currently logged in, and the system load averages for the past 1, 5, and 15 minutes.Load averages represent the average number of processes waiting for CPU time. On a single-CPU system, a load of 1.0 means the CPU is fully utilized. On a 4-CPU system, a load of 4.0 indicates full utilization. Values above the CPU count suggest processes are waiting for CPU time.The command reads from /proc/uptime for system uptime and /var/run/utmp for user information. It is part of the procps-ng package.

PARAMETERS

-p, --pretty

Show uptime in human-readable format
-s, --since
Show date and time when system started (yyyy-mm-dd HH:MM:SS)
-h, --help
Display help message
-V, --version
Display version information

OUTPUT FORMAT

Default output shows:- Current time- System uptime (days, hours, minutes)- Number of logged-in users- Load averages for 1, 5, and 15 minutesExample: `14:30:05 up 7 days, 3:42, 2 users, load average: 0.15, 0.20, 0.18`

INSTALL

sudo apt install procps
copy
sudo dnf install procps-ng
copy
sudo pacman -S procps-ng
copy
sudo apk add procps-ng
copy
sudo zypper install procps
copy
brew install procps
copy
nix profile install nixpkgs#procps
copy

CAVEATS

Load averages include processes waiting for I/O, not just CPU-bound processes, which can make interpretation less straightforward. The user count reflects logged-in sessions, including multiple terminals for the same user. System time resets on reboot; for historical uptime tracking, use external monitoring tools.

HISTORY

The uptime command originated in early Unix systems, providing a quick way to check system health. It became part of standard Unix utilities and is included in all Unix-like systems. The load average concept was introduced in BSD Unix. On Linux, uptime is part of the procps (later procps-ng) package that provides utilities for examining the /proc filesystem.

SEE ALSO

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

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid