Linux command
uprecords 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
uprecords
Example
uprecords -m [25]
Example
uprecords -d
Example
uprecords -B
Example
uprecords -a
Example
uprecords -f
Example
uprecords -M
说明
uprecords displays a summary of historical uptime records collected by the uptimed(8) daemon. It tracks system uptime across reboots and shows statistics about the longest running periods. The tool requires the uptimed daemon to be running to collect uptime data. By default, it shows the top 10 uptime records with extra statistics.
参数
- -m _N_
- Display top N records instead of the default 10.
- -a
- Show all records.
- -b
- Sort by boot time, oldest first. Implies -s.
- -B
- Sort by boot time, newest first. Implies -s.
- -c
- Do not show current entry if not in top entries.
- -d
- Show downtime between reboots instead of kernel version.
- -f
- Run continuously in a loop (update every 5 seconds).
- -i _INTERVAL_
- Use INTERVAL seconds for loop instead of 5. Implies -f.
- -k
- Sort by kernel/system name. Implies -s.
- -K
- Sort by kernel/system name, reversed. Implies -s.
- -M
- Show next milestone.
- -s
- Do not print extra statistics.
- -w
- Do not truncate output.
- -v
- Show version information.
FAQ
What is the uprecords command used for?
uprecords displays a summary of historical uptime records collected by the uptimed(8) daemon. It tracks system uptime across reboots and shows statistics about the longest running periods. The tool requires the uptimed daemon to be running to collect uptime data. By default, it shows the top 10 uptime records with extra statistics.
How do I run a basic uprecords example?
Run `uprecords` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -m _N_ do in uprecords?
Display top N records instead of the default 10.