| 1 |
.\" |
| 2 |
.\" Copyright (c) 2011-2024 Craig Small <[email protected]> |
| 3 |
.\" Copyright (c) 2011-2024 Jim Warner <[email protected]> |
| 4 |
.\" Copyright (c) 2011-2012 Sami Kerola <[email protected]> |
| 5 |
.\" Copyright (c) 2002 Albert Cahalan |
| 6 |
.\" |
| 7 |
.\" This program is free software; you can redistribute it and/or modify |
| 8 |
.\" it under the terms of the GNU General Public License as published by |
| 9 |
.\" the Free Software Foundation; either version 2 of the License, or |
| 10 |
.\" (at your option) any later version. |
| 11 |
.\" |
| 12 |
.\" |
| 13 |
.TH UPTIME 1 2024-02-08 procps-ng |
| 14 |
.SH NAME |
| 15 |
uptime \- Tell how long the system has been running. |
| 16 |
.SH SYNOPSIS |
| 17 |
.B uptime |
| 18 |
.RI [ option " .\|.\|.]" |
| 19 |
.SH DESCRIPTION |
| 20 |
.B uptime |
| 21 |
gives a one line display of the following information. The current time, how |
| 22 |
long the system has been running, how many users are currently logged on, and |
| 23 |
the system load averages for the past 1, 5, and 15 minutes. |
| 24 |
.PP |
| 25 |
This is the same information contained in the header line displayed by |
| 26 |
.BR w (1). |
| 27 |
.PP |
| 28 |
System load averages is the average number of processes that are either in a |
| 29 |
runnable or uninterruptible state. A process in a runnable state is either |
| 30 |
using the CPU or waiting to use the CPU. A process in uninterruptible state |
| 31 |
is waiting for some I/O access, eg waiting for disk. The averages are taken |
| 32 |
over the three time intervals. Load averages are not normalized for the |
| 33 |
number of CPUs in a system, so a load average of 1 means a single CPU system |
| 34 |
is loaded all the time while on a 4 CPU system it means it was idle 75% of |
| 35 |
the time. |
| 36 |
.SH OPTIONS |
| 37 |
.TP |
| 38 |
\fB\-c\fR, \fB\-\-container\fR |
| 39 |
show the container uptime instead of system uptime. |
| 40 |
.TP |
| 41 |
\fB\-p\fR, \fB\-\-pretty\fR |
| 42 |
show uptime in pretty format |
| 43 |
.TP |
| 44 |
\fB\-h\fR, \fB\-\-help\fR |
| 45 |
display this help text |
| 46 |
.TP |
| 47 |
\fB\-r\fR, \fB\-\-raw\fR |
| 48 |
Display values in a raw format. Current time and uptime are displayed in seconds. |
| 49 |
.TP |
| 50 |
\fB\-s\fR, \fB\-\-since\fR |
| 51 |
system up since, in yyyy-mm-dd HH:MM:SS format |
| 52 |
.TP |
| 53 |
\fB\-V\fR, \fB\-\-version\fR |
| 54 |
display version information and exit |
| 55 |
.SH ENVIRONMENT |
| 56 |
.TP |
| 57 |
.B PROCPS_CONTAINER |
| 58 |
If $\fBPROCPS_CONTAINER\fR is set, then \fBuptime\fR behaves as if the \fB\-\-container\fR option has been given. |
| 59 |
.SH FILES |
| 60 |
.TP |
| 61 |
.I /var/run/utmp |
| 62 |
information about who is currently logged on |
| 63 |
.TP |
| 64 |
.I /proc |
| 65 |
process information |
| 66 |
.SH "SEE ALSO" |
| 67 |
.BR ps (1), |
| 68 |
.BR top (1), |
| 69 |
.BR utmp (5), |
| 70 |
.BR w (1) |
| 71 |
.SH "REPORTING BUGS" |
| 72 |
Please send bug reports to |
| 73 |
.MT [email protected] |
| 74 |
.ME . |