uptime
system informationLinux/Unix
The uptime command is one of the most frequently used commands in Linux/Unix-like operating systems. uptime Tell how long the system has been running
Quick Reference
Command Name:
uptime
Category:
system information
Platform:
Linux/Unix
Basic Usage:
uptime [options] [arguments]
Common Use Cases
Syntax
uptime [options]
Options
Option | Description |
---|---|
-p, --pretty |
Show uptime in pretty format (time since boot only) |
-s, --since |
Show the date and time the system booted up |
-h, --help |
Display help and exit |
-V, --version |
Output version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the uptime
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
# Display system uptime and load
uptime