Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Uptime #715

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions _commands/basics/uptime.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
---
---

uptime
-------

`uptime` prints out how long your system has been up and running.

~~~ bash
$ uptime
21:57:05 up 10:09, 1 user, load average: 0.23, 0.35, 1.06
~~~

<!--more-->


### Useful Options / Examples

#### Description of Output
`uptime` displays the following information in one line when it is ran:

* The current time
* How long the system has been up (the 'up time')
* The number of users on the system
* The system load average in
* The past 1 minute
* The past 5 minutes, and
* The past 15 minutes


### `uptime -p`
Displays the uptime in a nicer, **p**rettier format.

`uptime --pretty` can also be used.

~~~ bash
$ uptime -p
up 10 hours, 25 minutes
~~~


### `uptime -s`
Displays the uptime **s**ince, in yyyy-mm-dd HH:MM:SS format.

`uptime --since` can also be used.

~~~ bash
$ uptime -s
2018-10-24 11:47:53
~~~

### `uptime -V`
Displays your **V**ersion of uptime.

`uptime --version` can also be used.

~~~ bash
$ uptime -V
uptime from procps-ng 3.3.12
~~~

### `uptime -h`
Displays a short **h**elp page, similar to this page.

`uptime --help` can also be used.

~~~ bash
$ uptime -h

Usage:
uptime [options]

Options:
-p, --pretty show uptime in pretty format
-h, --help display this help and exit
-s, --since system up since
-V, --version output version information and exit
~~~