Friday, August 5, 2011

Inside /proc ( Illusionary Filesystem)

The
/proc filesystem
The /proc filesystem contains a illusionary filesystem. It does not exist on a disk. Instead, the kernel creates  it in memory. It is used to provide information about the system (originally about processes, hence the name). Some of the more important files and directories

/proc/1
A directory with information about process number 1. Each process has a directory below /proc
with the name being its process identification number.

/proc/cpuinfo
Information about the processor, such as its type, make, model, and performance.

/proc/devices
List of device drivers configured into the currently running kernel.

/proc/filesystems
Filesystems configured into the kernel.

/proc/meminfo
Information about memory usage, both physical and swap.

/proc/stat
Various statistics about the system, such as the number of page faults since the system was booted.

/proc/uptime
The time the system has been up.

/proc/version
The kernel version.

No comments:

Post a Comment