Vol. I · No. 46The command line sectionSat, 10 Oct 2026
Linux · system information

uptime

how long, and how busy

uptime prints one line: the time, how long since the last boot, the number of logged-in users, and the load average over 1, 5 and 15 minutes.

Compare the load with the number of CPU cores: at or below the core count, the machine is keeping up.

Up
Time since boot
days, hours, minutes
Load
Three averages
1, 5 and 15 minutes
Judge against
CPU cores
nproc prints the count
Same line as
top’s first
and w’s

At the terminal

Read the session first, then the notes: each numbered line in the output is answered by the note with the same number.

user@netflow — bashprocps
$ uptime
1 10:42:07 up 12 days, 3:14, 2 users, load average: 0.42, 0.31, 0.27
2$ nproc
4
3$ uptime -s
2026-09-18 07:28:02
Illustrative session · names, sizes and dates are examples, and every address is from a documentation or private range
Reading the output

What the numbered lines are telling you

1
Reading the line

It is 10:42; the system has been up 12 days and 3 hours; two users are logged in. The load has been steady at well under 1.

2
Four cores

A load of 4.0 would mean all four are fully busy. 0.42 means the machine is mostly idle.

3
When it booted

-s gives the date and time of the last boot — useful for matching against the time of an outage.

Switches

A switch changes how the command behaves. These are the ones used day to day; man uptime lists the rest. Single-letter switches can usually be joined, so -l -a may be written -la.

-p
Pretty: print only the running time, in words.
-s
Since: print the date and time the system booted.

Variations worth knowing

The same tool, pointed at a narrower question. These four cover most of what it is reached for day to day.

uptime -p

Prints only the running time, in words.

w

The same header, followed by who is logged in and what they are running.

cat /proc/loadavg

The raw load figures, as scripts read them.

last reboot | head -3

Lists the most recent restarts.

In cybersecurity

A long uptime is not something to be proud of.

Months up means months unpatched

Kernel fixes need a reboot. A server up for 400 days is running a kernel with every vulnerability found in that time.

An unexpected reboot

If uptime is a few hours and nobody restarted the machine, find out why: a crash, a power loss, or someone covering their tracks.

Unexplained load

A high load on a machine that should be idle points to a runaway process — or one that should not be there at all.

Filed under

System information

Read alongside