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, in yyyy-mm-dd HH:MM:SS format. receipts for exactly when she woke up โฑ๏ธ
  • -V, --version โ€” display version information and exit. and then she leaves, periodt โœŒ๏ธ

๐ŸŒฑ ENVIRONMENT ๐ŸŒฑ

  • PROCPS_CONTAINER โ€” if $PROCPS_CONTAINER is set, then uptime behaves as if the --container option 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 ๐Ÿ‘€

ps(1), top(1), utmp(5), w(1)

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
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms