System information
40 System Analysis and Tuning Guide
Capabilities: [dc] Power Management version 2
Capabilities: [e4] PCI-X non-bridge device
Kernel driver in use: e1000
Kernel modules: e1000
Information about device name resolution is obtained from the file /usr/share/
pci.ids. PCI IDs not listed in this file are marked “Unknown device.”
The parameter -vv produces all the information that could be queried by the pro-
gram. To view the pure numeric values, use the parameter -n.
2.7.2 USB Devices: lsusb
The command lsusb lists all USB devices. With the option -v, print a more de-
tailed list. The detailed information is read from the directory /proc/bus/usb/.
The following is the output of lsusb with these USB devices attached: hub, memory
stick, hard disk and mouse.
mercury:/ # lsusb
Bus 004 Device 007: ID 0ea0:2168 Ours Technology, Inc. Transcend JetFlash \
2.0 / Astone USB Drive
Bus 004 Device 006: ID 04b4:6830 Cypress Semiconductor Corp. USB-2.0 IDE \
Adapter
Bus 004 Device 005: ID 05e3:0605 Genesys Logic, Inc.
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 005: ID 046d:c012 Logitech, Inc. Optical Mouse
Bus 001 Device 001: ID 0000:0000
2.8 Files and File Systems
2.8.1 Determine the File Type: file
The command file determines the type of a file or a list of files by checking /
usr/share/misc/magic.
tux@mercury:~> file /usr/bin/file
/usr/bin/file: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), \
for GNU/Linux 2.6.4, dynamically linked (uses shared libs), stripped
The parameter -f list specifies a file with a list of filenames to examine. The -z
allows file to look inside compressed files: