uptime Command Generator
Generate uptime commands to show how long the system has been running
Getting Started with uptime
## What is uptime?
The `uptime` command shows how long the system has been running, the current time, the number of logged-in users, and the 1/5/15-minute load averages. It's a quick one-liner health check for any server.
## How to Use
1. **Run Plain**: With no options, `uptime` prints the default one-line summary. 2. **Pick a Format (optional)**: Use `-p` for a human-friendly duration or `-s` for the exact boot timestamp. 3. **Copy & Run**: Copy the generated command into your terminal.
Common Options
### `-p` Pretty format Print the duration as a friendly phrase like `up 2 weeks, 3 days, 4 hours, 5 minutes` — easy to read in scripts or status pages. Omits time, users, and load averages.
### `-s` Boot time Print the system's boot timestamp (e.g. `2024-06-15 10:30:45). Useful for correlating with logs or checking when a machine last rebooted.
### Default output (no flags) The one-line form: current time, uptime duration, user count, and the three load averages. Best for a quick at-a-glance check.
▶What do the three load average numbers mean?
▶How do I find out exactly when the server last booted?
▶Why does uptime show more users than I expect?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee