2025-03-14 21:59:59 -06:00
|
|
|
# uptime
|
|
|
|
|
|
|
|
|
|
> Tell how long the system has been running and other information.
|
|
|
|
|
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/uptime-invocation.html>.
|
|
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`uptime {{[-p|--pretty]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Print the date and time the system booted up at:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`uptime {{[-s|--since]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display version:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`uptime {{[-V|--version]}}`
|