UPT(1)

πŸ“¦
version 2021-03 Β· 2 versions
, in nixos 26.05

πŸŽ€ 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 πŸ”₯

fetchutils(1)

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