commands.sh
⌘K

uptime

all

Tell how long the system has been running and other information.

More info →

Options (4)

-p, --prettyboolean

Show only the amount of time the system has been booted for

Example: uptime {{[-p|--pretty]}}
-s, --sinceboolean

Print the date and time the system booted up at

Example: uptime {{[-s|--since]}}
-r, --rawboolean

Display the time data in seconds

Example: uptime {{[-r|--raw]}}
-V, --versionboolean

Display version

Example: uptime {{[-V|--version]}}

Examples (5)

Print current time, uptime, number of logged-in users, and other information

uptime

Show only the amount of time the system has been booted for

uptime [-p|--pretty]

Print the date and time the system booted up at

uptime [-s|--since]

Display the time data in seconds

uptime [-r|--raw]

Display version

uptime [-V|--version]
made by @shridhargupta | data from tldr-pages