2015-12-13 00:37:56 +02:00
|
|
|
# uptime
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
> Tell how long the system has been running and other information.
|
2025-01-18 18:45:33 +05:30
|
|
|
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/uptime-invocation.html>.
|
2015-12-13 00:37:56 +02:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Print current time, uptime, number of logged-in users and other information:
|
2015-12-13 00:37:56 +02:00
|
|
|
|
|
|
|
`uptime`
|
2018-07-08 17:49:52 +01:00
|
|
|
|
|
|
|
- Show only the amount of time the system has been booted for:
|
|
|
|
|
2025-03-12 21:05:58 +02:00
|
|
|
`uptime {{[-p|--pretty]}}`
|
2018-07-08 17:49:52 +01:00
|
|
|
|
|
|
|
- Print the date and time the system booted up at:
|
|
|
|
|
2025-03-12 21:05:58 +02:00
|
|
|
`uptime {{[-s|--since]}}`
|
2018-07-08 17:49:52 +01:00
|
|
|
|
2024-01-30 01:55:24 -03:00
|
|
|
- Display version:
|
2018-07-08 17:49:52 +01:00
|
|
|
|
2025-03-12 21:05:58 +02:00
|
|
|
`uptime {{[-V|--version]}}`
|