TUPTIME(1)
π TUPTIME π (section 1 of the General Commands Manual, bestie)
okay so. imagine you wanna know how long your lil computer has been alive, like actually alive, across every reboot it's ever done. that's tuptime. she's a command-line girlie in the General Commands Manual, and she keeps receipts. receipts that survive reboots. iconic behavior honestly π«Ά
πΈ NAME πΈ
tuptime β reports historical and statistical system uptime, preserved across reboots. Total uptime. periodt.
β¨ SYNOPSIS β¨
tuptime [-h] [-A STARTUP] [-b] [-c] [-d DATETIME_FMT] [-e DECIMALS] [-E
STARTUP] [-f FILE] [-g] [-i] [-k] [-l] [-n] [-o TYPE] [-p] [-q] [-r]
[-s] [-S STARTUP] [-t] [--tat TIMESTAMP] [--tsince TIMESTAMP] [--tuntil
TIMESTAMP] [-U STARTUP] [-v] [-V]
π DESCRIPTION π
okay so here's the vibe: tuptime reports historical and statistical system uptime, and β this is the important part β it preserves that info across reboots. she does not forget. she never forgets. π
and like, she can do all of this:
- count system startups
- register first boot time (since installation time)
- count graceful and accidental shutdowns
- uptime and downtime percentage since first boot time
- accumulated system uptime (running and sleeping), downtime, and total
- register used kernels and boot IDs
- report current uptime
- print a formatted table or list with the system history
- narrow reports since, until, or at a given startup or timestamp
- output in csv format
no cap, that's the whole portfolio. π
π OPTIONS π
π¦ ARGUMENTS π¦
-h,--helpβ show this help message and exit-A,--at STARTUPβ limit to this startup number-b,--bootidβ show boot identifier-c,--csvβ output in csv format-d,--date DATETIME_FMTβ datetime/timestamp format output-e,--dec DECIMALSβ number of decimals in percentages-E,--exclude STARTUPβ startup numbers to exclude, comma separated, and you can do target ranges with a dash (e.g.'2,10-20,50')-f,--filedb FILEβ database file (/var/lib/tuptime/tuptime.db)-g,--gracefulβ register a graceful shutdown-i,--invertβ startup number in reverse count (for-t,-l,--tat) | switch between longest/shortest on default output-k,--kernelβ show kernel version-l,--listβ enumerate system life as list. mutually exclusive with-tand--tat-n,--noupβ avoid update values into DB-o,--order TYPEβ order enumerate by[u|r|s|e|d|k]. only works with-tor-l. (u = uptime | r = runtime | s = sleep time | e = end status | d = downtime | k = kernel)-p,--powerβ show power states run + sleep. cannot be used in combination with--tsince,--tuntilor--tat-q,--quietβ update values into DB without output-r,--reverseβ reverse order in listings. only works with-tor-l-s,--secondsβ output time in seconds and epoch-S,--since STARTUPβ limit from this startup number-t,--tableβ enumerate system life as table. mutually exclusive with-land--tat--tat TIMESTAMPβ system status at epoch timestamp. mutually exclusive with-land-t--tsince TIMESTAMPβ limit from this epoch timestamp--tuntil TIMESTAMPβ limit until this epoch timestamp-U,--until STARTUPβ limit up until this startup number-v,--verboseβ verbose output-V,--versionβ show version
π§ ENVIRONMENT π§
TUPTIME_DBFβ set an alternative database file path. the argument-f,--filedbtakes precedence over this.
bestie note: if you set both, the flag wins. she said what she said. π
π DEFAULT OUTPUT π
when you just run her with nothing, this is what you get:
System startups
total number of system startups since first timestamp available.
System shutdowns
total number of shutdowns done correctly or incorrectly.
System life
time counter since first startup timestamp available.
System uptime / System downtime
percentage of time and time counter.
Longest uptime / Longest downtime
time counter and date with the longest/shortest uptime/downtime register.
Average uptime / Average downtime
average time counter.
Current uptime
actual time counter and datetime since registered boot timestamp.
π₯ EXAMPLES π₯
tuptime
default output.
tuptime -t
enumerate system life as table. mutually exclusive with -l and --tat.
tuptime -l
enumerate system life as list. mutually exclusive with -t and --tat.
tuptime -k
add kernel information to the output.
tuptime --csv
report in csv format.
tuptime -s
change default human readable datetime/timestamp style and print times in seconds and datetimes in epoch.
tuptime -d '%H:%M:%S %m-%d-%Y'
change the datetime/timestamp format. by default the output use the configured system locales.
tuptime --tsince -31557600
report since one year ago.
π FILES π
file paths may vary depending on the operating system and distribution. (just so you know, so you don't come for me π)
/var/lib/tuptime/tuptime.dbβ default database file./etc/cron.d/tuptimeβ scheduled cron file./etc/init.d/tuptimeβ init file./usr/lib/systemd/system/tuptime.serviceβ systemd service unit file. register time values into database./usr/bin/tuptimeβ main and only executable file./usr/share/doc/tuptime/β directory with multiple documentation files./usr/lib/systemd/system/tuptime-sync.timerβ systemd.timerunit for use instead of cron. only executestuptime-sync.service./usr/lib/systemd/system/tuptime-sync.serviceβ systemd.serviceunit required bytuptime-sync.timer. updates time values into database./usr/lib/sysusers.d/tuptime.confβ systemd sysusers configuration file for creating the_tuptimeuser./usr/share/man/man1/tuptime.1β manual page.
π SEE ALSO π
/usr/share/doc/tuptime/tuptime-manual.txt.gzβ detailed documentation.https://github.com/rfmoz/tuptime/β official repository.
β REQUIREMENTS β
- Python 3.x
π AUTHOR π
Ricardo Fraile <r@rfmoz.eu>
π COPYRIGHT π
Copyright (C) 2026 by Ricardo F. All Rights Reserved.
This product is distributed in the hope that it will be useful, but WITHOUT any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
and that's the whole page, bestie β¨ this was version 5.2.6, dated Apr 2026, and yes she's filed under TUPTIME(1) in the General Commands Manual. go forth and know exactly how long your machine has been awake. she's been waiting to tell you. π
π¦ where this page comes from
- epel 10: tuptime 5.2.6-1.el10_3 Β· GPL-2.0-or-later
- epel 9: tuptime 5.2.6-1.el9 Β· GPL-2.0-or-later
- fedora 43: tuptime 5.2.6-1.fc43 Β· GPL-2.0-or-later
- fedora 44: tuptime 5.2.6-1.fc44 Β· GPL-2.0-or-later
- nixpkgs unstable: tuptime 5.2.6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms