UPTIME(1)
โจ UPTIME(1) โ the "how long has this machine been awake" check โจ
okay bestie, welcome to the General Commands Manual, section 1, and today's main character is uptime ๐
๐ธ NAME ๐ธ
uptime โ literally just tells you how long the system has been running. that's it. that's the whole job. she's simple, she's iconic, she serves.
๐ SYNOPSIS ๐
uptime [option ...]
๐ DESCRIPTION ๐
so uptime gives you one single line of output โ one line, that's the whole vibe, no paragraphs, no scrolling, we love an efficient queen ๐ โ and that line contains:
- the current time โฐ
- how long the system has been running (the actual uptime, bestie)
- how many users are currently logged on ๐ฅ
- the system load averages for the past 1, 5, and 15 minutes ๐
fun fact: this is the exact same info that lives in the header line that w(1) shows you. so if you already know w(1), you already know this, iykyk ๐ฆ
๐ okay so what even IS a "load average" ๐
not me about to explain this because it trips everyone up, bestie, listen:
System load averages = the average number of processes that are either in a runnable state or an uninterruptible state. two flavors, both count:
- a process in a runnable state is either using the CPU or waiting in line to use the CPU ๐โโ๏ธ
- a process in an uninterruptible state is waiting on some I/O access โ eg waiting for disk ๐ค
and these averages are taken over those three time intervals (1, 5, 15 min, remember?).
โ ๏ธ big important thing, no cap: load averages are not normalized for the number of CPUs in a system. so a load average of 1 means a single CPU system is loaded all the time, while on a 4 CPU system it means it was idle 75% of the time. same number, completely different story. that's the plot twist ๐ซ
โจ OPTIONS โจ
-c,--containerโ show the container uptime instead of the system uptime. container girlies rise ๐ซถ-p,--prettyโ show uptime in pretty format. cute formatting, we stan ๐-h,--helpโ display this help text. the classic, the beloved ๐-r,--rawโ display values in a raw format. current time and uptime get shown in seconds. no frills, just numbers ๐ข-s,--sinceโ system up since, inyyyy-mm-dd HH:MM:SSformat. receipts for exactly when she woke up โฑ๏ธ-V,--versionโ display version information and exit. and then she leaves, periodt โ๏ธ
๐ฑ ENVIRONMENT ๐ฑ
PROCPS_CONTAINERโ if$PROCPS_CONTAINERis set, thenuptimebehaves as if the--containeroption has been given. sneaky little auto-flag energy, honestly iconic ๐ง
๐ FILES ๐
/var/run/utmpโ information about who is currently logged on. the guest list ๐/procโ process information. where all the ~process lore~ lives ๐
๐ SEE ALSO ๐
go read those too, bestie, they're the friend group ๐
๐ REPORTING BUGS ๐
found a bug? not the vibe, but okay. please send bug reports to procps@freelists.org. they'll handle it ๐ซก
and that's the whole page, bestie!! this was procps-ng, dated 2024-02-08 โ mwah, sending you and your load averages so much love ๐โจ๐๐ฆ๐ธ๐ ๐ซถ
๐ฆ where this page comes from
- arch rolling: procps-ng 4.0.7-1 ยท GPL AND LGPL
- nixpkgs unstable: procps 4.0.7
- Copyright (c) 2011-2024 Craig Small <csmall@dropbear.xyz>
- Copyright (c) 2011-2024 Jim Warner <james.warner@comcast.net>
- Copyright (c) 2011-2012 Sami Kerola <kerolasa@iki.fi>
- Copyright (c) 2002 Albert Cahalan
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms