ttyload – Shows a Color-coded Graph of Linux Load Average in Terminal

[‘

n

ttyload is a lightweight utility which is intended to offer a color-coded graph of load averages over time on Linux and other Unix-like systems. It enables a graphical tracking of system load average in a terminal (“tty“).

n

It is known to run on systems such as Linux, IRIX, Solaris, FreeBSD, MacOS X (Darwin) and Isilon OneFS. It is designed to be easy to port to other platforms, but this comes with some hard work.

n

Some of its notable features are: it uses fairly standard, but hard-coded, ANSI escape sequences for screen manipulation and colorization. And also comes with (but doesn’t install, or even build by default) a relatively self-contained load bomb, if you want to view how things work on an otherwise unloaded system.

n

Suggested Read: GoTTY – Share Your Linux Terminal (TTY) as a Web Application

n

In this article, we will show you how to install and use ttyload in Linux to view a color-coded graph of your system load average in a terminal.

n

How to Install ttyload in Linux Systems

n

On Debian/Ubuntu based distributions, you can install ttyload from the default system respositores by typing the following apt-get command.

n

$ sudo apt-get install ttyloadrn

n

On Other Linux distributions you can install ttyload from the source as shown.

n

$ git clone https://github.com/lindes/ttyload.gitrn$ cd ttyloadrn$ makern$ ./ttyloadrn$ sudo make installrn

n

Once installed, you can start it by typing the following command.

n

$ ttyloadrn

n

ttyload - Graphical View of Linux Load Average
ttyload – Graphical View of Linux Load Average

n

Note: To close the program simply press [Ctrl+C] keys.

n

You can also define the number of seconds in the interval between refreshes. Default value is 4, and the minimum is 1.

n

$ ttyload -i 5rn$ ttyload -i 1rn

n

To run it in a monochrome mode which turns off ANSI escapes, use the -m as follows.

n

$ ttyload -mrn

n

ttyload - Monochrome Mode
ttyload – Monochrome Mode

n

To get the ttyload usage info and help, type.

n

$ ttyload -h rn

n

Below are some of its important features yet to be added:

n

    n

  • Support for arbitrary sizing.
  • n

  • Make an X front end using the same basic engine, to have “3xload”.
  • n

  • Logging-oriented mode.
  • n

n

For more information, check out the ttyload Homepage: http://www.daveltd.com/src/util/ttyload/

n

Thats all for now! In this article, we showed you how to install and use ttyload in Linux. Write back to us via the comment section below.

n

‘]