uptime command
Show how long the system has been running and the load average.
- System information
- Package procps
- 2 options · 4 examples
Syntax
uptime [options]Provided by the procps package. Run man uptime for the full manual.
Common options
| Option | What it does |
|---|---|
-p | Pretty format: "up 3 days, 4 hours" |
-s | Time the system booted |
Examples
Uptime and load
uptimePretty format
uptime -pBoot time
uptime -sReboot history
last reboot | head
No example matches. Check the options table or search the guides.
Tips
- The three load numbers are 1, 5 and 15-minute averages; compare them with your CPU count (
nproc).
uptime guides
- A Quick Reference Guide to Uptime Command in Linux Linux Commands · Updated Apr 2025
- How to Check System Uptime in Linux Linux · Updated Apr 2025
