Tips Linux Explorers   All Things Linux Forum   Great Linux Links   LinuxClues.com   Hometown   Email 



CPU INFO ( and other information on your system )


We can get a lot of info from the /proc directory ( The /proc is a direct reflection of the system kept in memory )

An example of the info we can get from /proc is "CPU info":

CODE
$ cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family       : 6
model              : 6
model name    : AMD Athlon(tm) Processor
stepping          : 2
cpu MHz         : 1595.353
cache size       : 256 KB
fdiv_bug          : no
hlt_bug            : no
f00f_bug          : no
coma_bug        : no
fpu                   : yes
fpu_exception  : yes
cpuid level       : 1
wp                    : yes
flags                : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow
bogomips        : 2182.34

That is pretty good info isn't it ? . . But that is not all, there is a lot of other real-time information on your system in /proc, try:

CODE
$ cat /proc/devices ( System block and character devices )

$ ls /proc/driver ( Shows The drivers you can "cat", example: "cat /proc/driver/rtc" )

$ cat /proc/filesystems ( Lists supported filesystems )

# cat /proc/kmsg ( As root !  kernel messages . . close with Ctrl+C )

$ cat /proc/modules ( A list of loaded drivers )

$ ls /proc/net ( A directory with networking subdirectories )

$ cat /proc/partitions ( All partitions your kernel recognizes )

$ cat /proc/pci ( Devices in the pci slots )

$ ls /proc/sys ( Directory with system information you can "cat" )

$ cat /proc/version ( Kernel version, the gcc it was commpiled with, etc . . . )


So you see there is a wealth of info you can retrieve from /proc . . . go off and explore, even if you do not understand all the info, it is good to know where you can get it


Bruno


PS: Brian wrote us that with "lshw" ( if installed on your distro ) you can query all that /proc info and print it to your screen.
Try "lshw -html >lshw.html" and you will get a nice html file in your home directory for easy viewing.


-- Mar 31 2004 ( Revised Dec 12 2005 ) --


Tips Linux Explorers   All Things Linux Forum   Great Linux Links   LinuxClues.com   Hometown   Email