O'Reilly logo

SAMS Teach Yourself Unix in 10 Minutes by Robert Shimonski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using uptime

uptime is another simple and useful command that can be used to verify how long your Unix system has been up and running. The uptime command returns the current time, the number of users logged in to the system, how long the system has been running, and the amount of load that the system is under. Just type uptime at the command prompt, as follows:

>uptime
6:30am up 12:50, 3 users, load average: 0.15, 0.11, 0.04

In this example, we can see that uptime returns the current time, up since, how many users are currently logged in to Unix, and the load average. Just about everything here should be self-explanatory except for the load average. The load average is composed of three values: the first value is the load on the system during ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required