© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
N. TolaramSoftware Development with Gohttps://doi.org/10.1007/978-1-4842-8731-6_3

3. Accessing proc File System

Nanik Tolaram1  
(1)
Sydney, NSW, Australia
 

In Chapter 2, you looked at the /sys filesystem in Linux and wrote a simple app to extract information from it. In this chapter, you are going to take a look at another system directory called /proc. The /proc directory is also known as procfs, and it contains useful information about processes that are currently running. The kernel uses it as an information center for all related processes.

In this chapter, you will learn how to do the following:
  • Look at the different information available inside procfs

Get Software Development with Go: Cloud-Native Programming using Golang with Linux and Docker now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.