uptime

Show how long the device has been running and the load average

uptime Monitoring and diagnostics GPL-2.0-or-later

About

uptime prints the current time, how long the system has been up, how many users are logged in, and the one, five and fifteen minute load averages. The load figures tell you whether the device is keeping up with its work. A one-line health check you can drop into any script.

Install it

Included with Termux

Run this inside Termux. If the package is already present, pkg will say so and do nothing.

Commands worth knowing

5 of the invocations you will actually reach for. Tap the copy button to put one on your clipboard.

uptime Print the time, uptime, user count and load averages in one line.
uptime -p Show only how long the system has been running, in a friendly form. Easier to quote.
uptime -s Print the date and time the system last started. Useful for correlating with log entries.
uptime --help Print the available options with a short description of each.
uptime -V Print the program version. Confirms which release is installed.

Developed by

procps-ng project · released under GPL-2.0-or-later.