Where are the contents of /proc of the Linux kernel documented?

Is there a site someplace that lists the contents of /proc and what each entry means?

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

The documentation for Linux’s implementation of /proc is in Documentation/filesystems/proc.txt in the kernel documentation.

Beware that /proc is one of the areas where *ixes differ most. It started out as a System V specific feature, was then greatly extended by Linux, and is now in the process of being deprecated by things like /sys. The BSDs — including OS X — haven’t adopted it at all. Therefore, if you write a program or script that accesses things in /proc, there is a good chance it won’t work on other *ixes.

Method 2

Yes, there is a man page in section 5 “File formats and conventions”:

man 5 proc

It is surprisingly long, though – it describes 189 kinds of files in /proc.

Method 3

Basically /proc has the files that are stored on RAM when the system boots and remains there as long as the system is up. Getting to know what’s in this file is like reading RAM. That’s why you can’t change the contents or values of these files using vim or some any other editor. They need to be forced with some boolean values.

Here I’ve got some good documentation with the whole list and descriptions of each item.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x