mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:07:34 +00:00
uptime: Bring output closer to Linux/BSDs, and add -p flag
The -p flag is equivalent to the previous behavior: outputting the uptime in a human-readable form. We don't seem to expose the number of online users or the load averages, so those sections are missing from the output compared to those OSes.
This commit is contained in:
parent
388856dc7e
commit
8faeb13036
2 changed files with 33 additions and 2 deletions
|
@ -8,9 +8,23 @@ uptime - Tell how long the system has been running
|
|||
$ uptime
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
`uptime` outputs information about the system, in a single line, to STDOUT.
|
||||
This information includes when the system came online and how long it has been up.
|
||||
|
||||
## Options
|
||||
|
||||
* `-p`, `--pretty`: Output only the uptime, in human-readable format.
|
||||
|
||||
## Examples
|
||||
|
||||
```sh
|
||||
$ uptime
|
||||
2024-01-24 06:23:27 up 4:20:00
|
||||
```
|
||||
|
||||
```sh
|
||||
$ uptime -p
|
||||
Up 2 minutes, 20 seconds
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue