uptime
Overview
The uptime command shows how long the system has been running. It displays the current time, system uptime, number of users, and load averages.
Syntax
uptime [options]Common Options
| Option | Description |
|---|---|
-p |
Pretty format |
-s |
Since date |
-h |
Show help |
-V |
Show version |
--pretty |
Pretty output |
--since |
Boot time |
--help |
Show help |
--version |
Show version |
Output Fields
| Field | Description |
|---|---|
| Time | Current time |
| Uptime | Running time |
| Users | Connected users |
| Load1 | 1 minute load |
| Load5 | 5 minute load |
| Load15 | 15 minute load |
Key Use Cases
- System monitoring
- Load analysis
- Uptime tracking
- User activity
- Performance checking
Examples with Explanations
Example 1: Basic Usage
uptimeShow all information
Example 2: Pretty Format
uptime -pHuman readable time
Example 3: Boot Time
uptime -sSystem start time
Common Usage Patterns
Quick check:
uptimeSimple format:
uptime -pBoot time:
uptime -s
System Information
- Running time
- System load
- User count
- Current time
- Load trends
Additional Resources
Best Practices
- Regular checking
- Load monitoring
- User tracking
- Documentation
- Trend analysis
Performance Analysis
- Load averages
- User activity
- System stability
- Uptime goals
- Resource usage
Troubleshooting
- High load
- User issues
- System stability
- Resource problems
- Performance degradation
Common Uses
- System monitoring
- Performance checks
- Availability tracking
- Load analysis
- User activity