Updated: 9 November 2026 · Applies to: Ubuntu 24.04, Debian 12, AlmaLinux 9 and Rocky Linux 9
tuptime records every boot and shutdown, so it can report the total uptime, downtime and the number of restarts since installation, which the normal uptime command cannot. The current version is 5.x.
Install
dnf install epel-release && dnf install tuptime # AlmaLinux / Rocky apt install tuptime # Ubuntu / Debian
The package sets up the service that registers each start and stop; data collection begins at installation.
Use it
tuptime # summary: startups, uptime and downtime percentage, averages tuptime -t # table of every boot with uptime and downtime tuptime -l # the same as a list tuptime -k # also show the kernel of each boot
Shutdowns are marked as good or bad; a bad shutdown means the system stopped without a clean power-off (crash or power loss).
Tip: For your VPS, the uptime history helps show whether restarts were planned (clean shutdowns) or unexpected.
Reset the history
tuptime keeps its data in /var/lib/tuptime/tuptime.db. To start counting again (for example after cloning a server), stop the service, remove that file and start it again.
tuptime records uptime from inside the server. To measure uptime from outside, the way your visitors see it, use Uptime Kuma: it checks a website, TCP port or ping as often as every 20 seconds, shows the uptime percentage for the last 24 hours and 30 days, and alerts you by email, Telegram, Slack, Discord and many other services when something goes down. Run it yourself on an Uptime Kuma VPS, or let us look after it with managed Uptime Kuma hosting.