LPIC1 (1) /proc filesystem

1. /proc filesystem:

The proc files, interrupts, dma, and ioports, show how system resources are currently utilized.


2. interrupts:

show the information of the interrupts of the system:

$ cat /proc/interrupts | less
           CPU0       CPU1       CPU2       CPU3       
  0:         22          0          0          0   IO-APIC   2-edge      timer
  1:         11      10646          0          0   IO-APIC   1-edge      i8042
  8:          1          0          0          0   IO-APIC   8-edge      rtc0
  9:        594       1124          0          0   IO-APIC   9-fasteoi   acpi
 12:        187     226025          0          0   IO-APIC  12-edge      i8042
 16:        320         47          0          0   IO-APIC  16-fasteoi   ehci_hcd:usb1

3. dma:

show the information of the dma of the system:

$ cat /proc/dma | less
 4: cascade

4. ioports:

show the information of the ioports of the system:

$ cat /proc/ioport | less
0000-0000 : PCI Bus 0000:00
  0000-0000 : dma1
  0000-0000 : pic1
  0000-0000 : timer0
  0000-0000 : timer1
  0000-0000 : keyboard
  0000-0000 : PNP0C09:00


Reference

[1] Adam Haeder, Stephen Addison Schneiter, Bruno Gomes Pessanha, and James Stanger , LPI Linux Certification in a nutshell (3rd), O’Reilly Media (2010)

留言

熱門文章