Red Hat ENTERPRISE LINUX 3 Reference Manual page 65

Hide thumbs Also See for ENTERPRISE LINUX 3:
Table of Contents

Advertisement

proc
Chapter 5. The
5.2.1.
/proc/apm
This file provides information about the state of the Advanced Power Management (APM) system and
is used by the
command. If a system with no battery is connected to an AC power source, this
apm
virtual file would look similar to the following:
1.16 1.2 0x07 0x01 0xff 0x80 -1% -1 ?
Running the
apm -v
APM BIOS 1.2 (kernel driver 1.16)
AC on-line, no system battery
For systems which do not use a battery as a power source,
machine in standby mode. The
following output is from the command
outlet:
1.16 1.2 0x03 0x01 0x03 0x09 100% -1 ?
When the same laptop is unplugged from its power source for a few minutes, the contents of the
file change to something like the following:
1.16 1.2 0x03 0x00 0x00 0x01 99% 1792 min
The
command now yields more useful data, such as the following:
apm -v
APM BIOS 1.2 (kernel driver 1.16)
AC off-line, battery status high: 99% (1 day, 5:52)
5.2.2.
/proc/cmdline
This file shows the parameters passed to the kernel at the time it is started. A sample
file looks like the following:
ro root=/dev/hda2
This tells us that the kernel is mounted read-only (signified by
the first IDE device (
5.2.3.
/proc/cpuinfo
This virtual file identifies the type of processor used by your system. The following is an example of
the output typical of
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model
: 2
model name : Intel(R) Xeon(TM) CPU 2.40GHz
stepping : 7
cpu MHz
: 2392.371
cache size : 512 KB
physical id : 0
siblings : 2
File System
command on such a system results in output similar to the following:
command is much more useful on laptops. For example, the
apm
cat /proc/apm
).
/dev/hda2
:
/proc/cpuinfo
is able do little more than put the
apm
on a laptop while plugged into a power
) off of the second partition on
(ro)
47
apm
/proc/cmdline

Advertisement

Table of Contents
loading

Table of Contents