Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

uptime

v(uutils coreutils) 0.8.0
uptime [OPTION]...

Display the current time, the length of time the system has been up, the number of users on the system, and the average number of jobs in the run queue over the last 1, 5 and 15 minutes.

Options

--since, -s

system up since

file to search boot time from

--pretty, -p

show uptime in pretty format

Examples

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:

uptime {{[-p|--pretty]}}

Print the date and time the system booted up at:

uptime {{[-s|--since]}}

Display the time data in seconds:

uptime {{[-r|--raw]}}

Display version:

uptime {{[-V|--version]}}

The examples are provided by the tldr-pages project under the CC BY 4.0 License.

Please note that, as uutils is a work in progress, some examples might fail.