Bash Shell: Find Out Linux / FreeBSD / UNIX System Load Average

Posted on in Categories Linux, Monitoring, Sys admin, UNIX last updated August 8, 2013

Yes, I know we can use the uptime command to find out the system load average. The uptime command displays the current time, the length of time the system has been up, the number of users, and the load average of the system over the last 1, 5, and 15 minutes. However, if you try to use the uptime command in script, you know how difficult it is to get correct load average. As the time since the last, reboot moves from minutes, to hours, and an even day after system rebooted. Just type the uptime command: