CHAPTER 35Colorful /proc Reporting

The proc file system is found on many UNIX and Linux variants and gives a virtual view into the running system. Traditionally the proc file system is attached to the /proc mount point, but proc is not really a file system and mostly contains "files" of zero size. Even though these objects look as if they are empty when they are listed, they actually contain quite a lot of information about the running system. When viewed, they show system information from the kernel's perspective: their contents are based on system resources and characteristics, such as memory, CPU, kernel, and network utilization.

There are several kinds of files in the /proc directory tree on a Linux machine. The first type is a series of ...

Get Expert Shell Scripting now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.