In this post, I'm going to show you som common shell command in linux that can helps you in obtaining your computer summary. This commands are useful if you expect a problem with your linux distribution, but you don't know where you should start in solving your problem.
Print system information
uname -a
Linux debian 2.6.30-bpo.1-686 #1 SMP Sun Jun 28 18:13:49 UTC 2009 i686 GNU/Linux
List all PCI devices
lspci -v -nn
00:00.0 Host bridge [0600]: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub [8086:2a40] (rev 07)
Subsystem: Sony Corporation Device [104d:9035]
Flags: bus master, fast devsel, latency 0
Capabilities: [e0] Vendor Specific Information <?>
Kernel modules: intel-agp
00:01.0 PCI bridge [0604]: Intel Corporation Mobile 4 Series Chipset PCI Express Graphics Port [8086:2a41] (rev 07) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 00006000-00006fff
.......
List the status of modules in the Linux Kernel
lsmod
Module Size Used by
binfmt_misc 7080 1
rfcomm 30184 0
l2cap 18112 5 rfcomm
bluetooth 46860 4 rfcomm,l2cap
vboxnetadp 66816 0
vboxnetflt 72288 0
.....
Cpu informations
cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz
stepping : 6
cpu MHz : 800.000
.....
Cpu frequency kernel information
cpufreq-info
cpufrequtils 004: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to cpufreq@lists.linux.org.uk, please.
analyzing CPU 0:
driver: acpi-cpufreq
CPUs which need to switch frequency at the same time: 0
hardware limits: 800 MHz - 2.27 GHz
available frequency steps: 2.27 GHz, 2.27 GHz, 1.60 GHz, 800 MHz
available cpufreq governors: powersave, userspace, conservative, ondemand, performance
current policy: frequency should be within 800 MHz and 2.27 GHz.
......
List of currently registered port regions used for input or output communication with a device
cat /proc/ioports
0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
0050-0053 : timer1
0060-0060 : keyboard
0064-0064 : keyboard
....
List number of interrupts per IRQ
cat /proc/interrupts
CPU0 CPU1
0: 311925 315345 IO-APIC-edge timer
1: 1584 1525 IO-APIC-edge i8042
8: 39 44 IO-APIC-edge rtc0
9: 2288 2253 IO-APIC-fasteoi acpi
12: 65 66 IO-APIC-edge i8042
16: 32 24 IO-APIC-fasteoi uhci_hcd:usb1, uhci_hcd:usb6, firewire_ohci
17: 12 13 IO-APIC-fasteoi mmc0, HDA Intel
....
List USB devices
cat /proc/bus/usb/devices
T: Bus=08 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 8
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 2.06
S: Manufacturer=Linux 2.6.30-bpo.1-686 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:1d.7
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
....
List USB bus devices:
lsusb
Bus 008 Device 004: ID 054c:0377 Sony Corp.
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 002: ID 05ca:183d Ricoh Co., Ltd
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 007: ID 04b8:010b Seiko Epson Corp. Perfection 1240
Bus 003 Device 006: ID 046d:c01d Logitech, Inc. MX510 Optical Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
I will try to keep this post updated as soon as i learn something new.. in the meanwhile, i want to say thx to http://www.klabs.be/ for prividing me this informations.