← 返回命令列表

Linux command

uptimed 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Start the daemon

sudo systemctl start uptimed

Enable at boot

sudo systemctl enable uptimed

View uptime records

uprecords

Show top 20 records

uprecords -m 20

Show downtime between reboots

uprecords -d

Show records in short format

uprecords -s

说明

uptimed is a daemon that tracks and records system uptime history. It maintains a database of boot sessions and their durations, allowing you to see historical uptime records for your system. The companion uprecords command displays the recorded data in a ranked format, showing your system's longest uptimes. An arrow marks the current session's position in the rankings. Configuration allows setting minimum uptime thresholds for records, milestone notifications, and email alerts when new records are achieved. The daemon uses boot time to distinguish between sessions.

FAQ

What is the uptimed command used for?

uptimed is a daemon that tracks and records system uptime history. It maintains a database of boot sessions and their durations, allowing you to see historical uptime records for your system. The companion uprecords command displays the recorded data in a ranked format, showing your system's longest uptimes. An arrow marks the current session's position in the rankings. Configuration allows setting minimum uptime thresholds for records, milestone notifications, and email alerts when new records are achieved. The daemon uses boot time to distinguish between sessions.

How do I run a basic uptimed example?

Run `sudo systemctl start uptimed` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more uptimed examples?

This page includes 6 examples for uptimed, plus related commands for nearby Linux tasks.