UPT(1)
π NAME π
okay bestie, welcome to the UPT(1) page from the General Commands Manual β this is all about upt, the tiny icon that gets your uptime. β¨
upt β get uptime.
πΈ SYNOPSIS πΈ
upt [format]
π DESCRIPTION π
upt retrieves the system uptime and formats it according to the provided format string. literally its whole main character job. π
π¦ FORMAT SPECIFIERS π¦
${d}β days of uptime.${h}β hours of uptime (does not include days).${m}β minutes of uptime (does not include hours).${s}β total amount of seconds elapsed since boot.
π§ ENVIRONMENT VARIABLES π§
in addition to the usual format specifiers, upt uses environment variables to specify the suffixes used for the day, hours, minutes, etc values. yep, you can dress up your uptime output. π
$UPT_DAY_SUFFIXβ days suffix. default:'d'$UPT_HOUR_SUFFIXβ hours suffix. default:'h'$UPT_MIN_SUFFIXβ minutes suffix. default:'m'$UPT_SEC_SUFFIXβ seconds suffix. default:'s'
π EXAMPLES π
executing upt with no format, like so:
upt
runs upt with the default format, '${d} ${h} ${m}'. sample result: '187d 21h 8m' β slay, that's the default vibe. β
custom format and suffixes can be used, e.g.:
UPT_DAY_SUFFIX=' days' \
UPT_HOUR_SUFFIX=' hours' \
UPT_MIN_SUFFIX=' minutes' \
upt '${d}, ${h}, and ${m}'
sample result: '114 days, 22 hours, and 25 minutes' β obsessed with the long-form cute version, fr fr. π«Ά
π REPORTING BUGS π
please report any bugs to https://github.com/lptstr/fetchutils/issues or to kiedtl@tilde.team. do not suffer in silence, bestie. π
π₯ SEE ALSO π₯
the full documentation for upt is not maintained as a Texinfo manual. if the info and upt programs are properly installed on your system, the command
info upt
should not give you access to the complete manual. that's the whole note, no cap. π
π LICENSE π
Copyright Β© 2020 KiΓ«d Llaentenn and contributors
this utility is licensed under the MIT license.
xoxo, your UPT(1) page β dated 1980-01-01 π
π¦ where this page comes from
- nixos 26.05: fetchutils-unstable 2021-03-16
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms