O'Reilly logo

Expert Shell Scripting by Ron Peters

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

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 ...

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