/l3/users/viktor-dremkov/redhat/linux4.unix.bas/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 :41 :42 :43 :44 |
|
#lsmod
Module Size Used by nfs 234433 1 fscache 20321 1 nfs nfsd 204593 17 exportfs 9665 1 nfsd nfs_acl 7617 2 nfs,nfsd auth_rpcgss 43105 1 nfsd nls_utf8 6209 1 i915 24385 1 drm 65493 2 i915 ... dm_mod 63224 15 dm_multipath,dm_raid45,dm_snapshot,dm_zero,dm_mirror,dm_log ata_piix 23621 3 libata 157445 1 ata_piix sd_mod 25281 3 scsi_mod 141973 5 scsi_dh,sr_mod,sg,libata,sd_mod ext3 125513 5 jbd 57321 1 ext3 uhci_hcd 25549 0 ohci_hcd 25193 0 ehci_hcd 34125 0 |
#who
root tty1 2010-06-04 17:15 root tty2 2010-06-05 12:40 root tty3 2010-06-05 14:44 user tty4 2010-06-05 14:42 root pts/2 2010-06-05 10:50 (linux254.unix.bas) root pts/3 2010-06-05 10:28 (192.168.15.12) root pts/5 2010-06-05 10:26 (192.168.15.3) root pts/7 2010-06-05 14:21 (linux7.unix.bas) root pts/9 2010-06-05 10:29 (linux2.unix.bas) root pts/11 2010-06-05 10:27 (192.168.15.1) root pts/19 2010-06-05 10:28 (linux5.unix.bas) root pts/21 2010-06-05 10:29 (:pts/17:S.0) root pts/4 2010-06-05 10:28 (linux9.unix.bas) root pts/23 2010-06-05 10:29 (linux11.unix.bas) root pts/25 2010-06-05 14:22 (linux8.unix.bas) root pts/27 2010-06-05 10:30 (linux10.unix.bas) root pts/29 2010-06-05 14:27 (linux13.unix.bas) root pts/31 2010-06-05 10:31 (linux10.unix.bas) |
#uptime
16:13:58 up 22:59, 19 users, load average: 0.99, 0.96, 0.86 |
#lsmod
Module Size Used by nfs 234433 1 fscache 20321 1 nfs nfsd 204593 17 exportfs 9665 1 nfsd nfs_acl 7617 2 nfs,nfsd auth_rpcgss 43105 1 nfsd nls_utf8 6209 1 i915 24385 1 drm 65493 2 i915 ... dm_mod 63224 15 dm_multipath,dm_raid45,dm_snapshot,dm_zero,dm_mirror,dm_log ata_piix 23621 3 libata 157445 1 ata_piix sd_mod 25281 3 scsi_mod 141973 5 scsi_dh,sr_mod,sg,libata,sd_mod ext3 125513 5 jbd 57321 1 ext3 uhci_hcd 25549 0 ohci_hcd 25193 0 ehci_hcd 34125 0 |
#lsmod | less
|
#modinfo ata_piix
filename: /lib/modules/2.6.18-194.el5PAE/kernel/drivers/ata/ata_piix.ko version: 2.12 license: GPL description: SCSI low-level driver for Intel PIIX/ICH ATA controllers author: Andre Hedrick, Alan Cox, Andrzej Krzysztofowicz, Jeff Garzik srcversion: 24C9D0F9C1D4CF2649685B1 alias: pci:v00008086d00003B2Esv*sd*bc*sc*i* alias: pci:v00008086d00003B2Dsv*sd*bc*sc*i* alias: pci:v00008086d00003B28sv*sd*bc*sc*i* alias: pci:v00008086d00003B26sv*sd*bc*sc*i* ... alias: pci:v00008086d00002411sv*sd*bc*sc*i* alias: pci:v00008086d000084CAsv*sd*bc*sc*i* alias: pci:v00008086d00007601sv*sd*bc*sc*i* alias: pci:v00008086d00007199sv*sd*bc*sc*i* alias: pci:v00008086d00007111sv*sd*bc*sc*i* alias: pci:v00008086d00007111sv000015ADsd00001976bc*sc*i* alias: pci:v00008086d00007010sv*sd*bc*sc*i* depends: libata vermagic: 2.6.18-194.el5PAE SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.1 module_sig: 883f3504bb64ece285b5c47ed7a1e8e112f79f09f6791558e90d37878239953e07fc49a42e759b7ff09f4790eb202cf27039ba4561efd5981663b34bdb3 |
#modinfo ata_piix |head
filename: /lib/modules/2.6.18-194.el5PAE/kernel/drivers/ata/ata_piix.ko version: 2.12 license: GPL description: SCSI low-level driver for Intel PIIX/ICH ATA controllers author: Andre Hedrick, Alan Cox, Andrzej Krzysztofowicz, Jeff Garzik srcversion: 24C9D0F9C1D4CF2649685B1 alias: pci:v00008086d00003B2Esv*sd*bc*sc*i* alias: pci:v00008086d00003B2Dsv*sd*bc*sc*i* alias: pci:v00008086d00003B28sv*sd*bc*sc*i* alias: pci:v00008086d00003B26sv*sd*bc*sc*i* |
#lsmod | less
|
#modinfo
.autofsck etc/ misc/ root/ tmp/ .autorelabel home/ mnt/ sbin/ usr/ .bash_history lesson2/ net/ selinux/ var/ bin/ lib/ opt/ srv/ boot/ lost+found/ proc/ sys/ dev/ media/ rights/ temp/ |
#ls /lib/modules/2.6.18-1
2.6.18-128.el5PAE/ 2.6.18-194.el5PAE/ |
#ls /lib/modules/`uname -r`
build modules.dep modules.pcimap updates extra modules.ieee1394map modules.seriomap weak-updates kernel modules.inputmap modules.symbols modules.alias modules.isapnpmap modules.usbmap modules.ccwmap modules.ofmap source |
#modinfo ipv6
filename: /lib/modules/2.6.18-194.el5PAE/kernel/net/ipv6/ipv6.ko alias: net-pf-10 license: GPL description: IPv6 protocol stack for Linux author: Cast of dozens srcversion: E41BA918E4428DFB61A1C83 depends: xfrm_nalgo vermagic: 2.6.18-194.el5PAE SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.1 parm: disable:Disable IPv6 such that it is non-functional (int) module_sig: 883f3504bb64edf285b5c47ed7a1e8e112741e09f44b01fb0717983b9aa4aac41f4f75bda310a7af09f48768b77b188f115f1bd59399652ddd885cbdd9d |
#modinfo netfilter
modinfo: could not find module netfilter |
#modinfo 8139too
filename: /lib/modules/2.6.18-194.el5PAE/kernel/drivers/net/8139too.ko version: 0.9.27 license: GPL description: RealTek RTL-8139 Fast Ethernet driver author: Jeff Garzik <jgarzik@pobox.com> srcversion: 5F6CB2E3E6BD8CFB5C12A5F alias: pci:v*d00008139sv000013D1sd0000AB06bc*sc*i* alias: pci:v*d00008139sv00001186sd00001300bc*sc*i* alias: pci:v*d00008139sv000010ECsd00008139bc*sc*i* alias: pci:v000010ECd00008129sv*sd*bc*sc*i* ... alias: pci:v00001113d00001211sv*sd*bc*sc*i* alias: pci:v000010ECd00008138sv*sd*bc*sc*i* alias: pci:v000010ECd00008139sv*sd*bc*sc*i* depends: mii vermagic: 2.6.18-194.el5PAE SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.1 parm: debug:8139too bitmapped message enable number (int) parm: multicast_filter_limit:8139too maximum number of filtered multicast addresses (int) parm: media:8139too: Bits 4+9: force full duplex, bit 5: 100Mbps (array of int) parm: full_duplex:8139too: Force full duplex for board(s) (1) (array of int) module_sig: 883f3504bb64ec6285b5c47ed7a1e8e1127ef909f713e1236366c5885eef61d43e58ef8f1c945c3ee09d16a8a141e8158b2e275d4d6e5db8972ffbc2f1 |
#insmod 8139too
insmod: can't read '8139too': No such file or directory |
#modprobe 8139too
|
#lsmod | head
Module Size Used by 8139too 29121 0 mii 9409 1 8139too nfs 234433 1 fscache 20321 1 nfs nfsd 204593 17 exportfs 9665 1 nfsd nfs_acl 7617 2 nfs,nfsd auth_rpcgss 43105 1 nfsd nls_utf8 6209 1 |
#modprobe -r 8139too
|
#find /lib/modules/`uname -r`/ -name 8139t\*
/lib/modules/2.6.18-194.el5PAE/kernel/drivers/net/8139too.ko |
#insmod `!!`
insmod `find /lib/modules/`uname -r`/ -name 8139t\*` bash: /: is a directory insmod: can't read '/lib/modules/': Is a directory |
#modinfo mii
filename: /lib/modules/2.6.18-194.el5PAE/kernel/drivers/net/mii.ko license: GPL description: MII hardware support library author: Jeff Garzik <jgarzik@pobox.com> srcversion: 16DCEDEE4B5629C222C352D depends: vermagic: 2.6.18-194.el5PAE SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.1 module_sig: 883f3504bb64ec8285b5c47ed7a1e8e112b66309e3d2a984d804a46c19a2a7d54ad1aa5ebc6833d009e33af3ef616a2139944ced7de39e9cdef6f03180 |
#modprobe mii
|
#insmod `find /lib/modules/$(uname -r)/ -name 8139t\*`
|
#depmod -a
|
#uname -r
2.6.18-194.el5PAE |
#ls -l /lib/modules/2.6.18-194.el5PAE/
total 1348 lrwxrwxrwx 1 root root 48 May 30 21:54 build -> ../../../usr/src/kernels/2.6.18-194.el5-PAE-i686 drwxr-xr-x 2 root root 4096 Apr 3 02:08 extra drwxr-xr-x 9 root root 4096 May 30 21:54 kernel -rw-r--r-- 1 root root 290963 Jun 5 15:58 modules.alias -rw-r--r-- 1 root root 69 Jun 5 15:58 modules.ccwmap -rw-r--r-- 1 root root 231615 Jun 5 15:58 modules.dep -rw-r--r-- 1 root root 147 Jun 5 15:58 modules.ieee1394map -rw-r--r-- 1 root root 375 Jun 5 15:58 modules.inputmap -rw-r--r-- 1 root root 2314 Jun 5 15:58 modules.isapnpmap -rw-r--r-- 1 root root 74 Jun 5 15:58 modules.ofmap -rw-r--r-- 1 root root 221411 Jun 5 15:58 modules.pcimap -rw-r--r-- 1 root root 589 Jun 5 15:58 modules.seriomap -rw-r--r-- 1 root root 141322 Jun 5 15:58 modules.symbols -rw-r--r-- 1 root root 393321 Jun 5 15:58 modules.usbmap lrwxrwxrwx 1 root root 5 May 30 21:54 source -> build drwxr-xr-x 2 root root 4096 Apr 3 02:08 updates drwxr-xr-x 3 root root 4096 May 31 20:37 weak-updates |
#mv /lib/modules/2.6.18-194.el5PAE/modules.dep /tmp/
|
#tail -f /var/log/messages
Jun 5 16:01:43 linux4 kernel: Add. Sense: No additional sense information Jun 5 16:01:43 linux4 kernel: Jun 5 16:01:43 linux4 kernel: sd 2:0:0:0: ioctl_internal_command return code = 8000002 Jun 5 16:01:43 linux4 kernel: : Current: sense key: No Sense Jun 5 16:01:43 linux4 kernel: Add. Sense: No additional sense information Jun 5 16:01:43 linux4 kernel: Jun 5 16:01:43 linux4 kernel: sd 2:0:0:0: ioctl_internal_command return code = 8000002 Jun 5 16:01:43 linux4 kernel: : Current: sense key: No Sense Jun 5 16:01:43 linux4 kernel: Add. Sense: No additional sense information Jun 5 16:01:43 linux4 kernel: ... Jun 5 16:02:13 linux4 kernel: Add. Sense: No additional sense information Jun 5 16:02:13 linux4 kernel: Jun 5 16:02:13 linux4 kernel: sd 3:0:0:0: ioctl_internal_command return code = 8000002 Jun 5 16:02:13 linux4 kernel: : Current: sense key: No Sense Jun 5 16:02:13 linux4 kernel: Add. Sense: No additional sense information Jun 5 16:02:13 linux4 kernel: Jun 5 16:02:15 linux4 kernel: sd 3:0:0:0: ioctl_internal_command return code = 8000002 Jun 5 16:02:15 linux4 kernel: : Current: sense key: No Sense Jun 5 16:02:15 linux4 kernel: Add. Sense: No additional sense information Jun 5 16:02:15 linux4 kernel: |
#umount /dev/sdb1
|
#lsusb
Bus 002 Device 001: ID 0000:0000 Bus 004 Device 001: ID 0000:0000 Bus 003 Device 001: ID 0000:0000 Bus 001 Device 003: ID 3538:0042 Power Quotient International Co., Ltd Cool Drive U339 Flash Disk Bus 001 Device 001: ID 0000:0000 Bus 005 Device 001: ID 0000:0000 |
#ls /media/
Boson Netsim 7.0 cdrom_polzovatelya cdrom_polzovatelya~2 Half-open_limit_fix_4.1.exe ICND110_InstructorCD ICND210_InstructorCD kmod-atl1e-PAE-1.0.0.11-1.el5.elrepo.i686.rpm launch.exe mega-script.sh Platform PVTC%20Installation%20Guide.pdf setup.exe WinDjView-1.0.1-Setup.exe Полный справочник по Cisco.[Брайан Хилл].pdf |
#ls /media/
lspci 00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03) 00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01) 00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01) 00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01) 00:1d.0 USB Controller: Intel Corporation N10/ICH7 Family USB UHCI Controller #1 (rev 01) 00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01) 00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01) 00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01) 00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) 00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01) 01:00.0 Ethernet controller: Atheros Communications Atheros AR8121/AR8113/AR8114 PCI-E Ethernet Controller (rev b0) 03:01.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02) |
#lspci
|
#ls /media/
lspci rpm -qlp /media/kmod-atl1e-PAE-1.0.0.11-1.el5.elrepo.i686.rpm |
#ls /media/
|
#lspci
rpm -qlp /media/kmod-atl1e-PAE-1.0.0.11-1.el5.elrepo.i686.rpm warning: /media/kmod-atl1e-PAE-1.0.0.11-1.el5.elrepo.i686.rpm: Header V3 DSA signature: NOKEY, key ID baadae52 /etc/depmod.d/atl1e.conf /lib/modules/2.6.18-128.el5PAE /lib/modules/2.6.18-128.el5PAE/extra /lib/modules/2.6.18-128.el5PAE/extra/atl1e /lib/modules/2.6.18-128.el5PAE/extra/atl1e/atl1e.ko |
#less /etc/modprobe.
|
#less /etc/modprobe.conf
|
#rpm -qf /etc/init.d/kudzu
kudzu-1.2.57.1.24-1.el5.centos |
#rpm -qlf /etc/depmod.d/atl1e.conf
/etc/depmod.d/atl1e.conf /lib/modules/2.6.18-128.el5PAE /lib/modules/2.6.18-128.el5PAE/extra /lib/modules/2.6.18-128.el5PAE/extra/atl1e /lib/modules/2.6.18-128.el5PAE/extra/atl1e/atl1e.ko |
#rpm -qlf /etc/init.d/kudzu
/etc/rc.d/init.d/kudzu /etc/sysconfig/kudzu /sbin/kudzu /usr/lib/python2.4/site-packages/_kudzumodule.so /usr/lib/python2.4/site-packages/kudzu.py /usr/lib/python2.4/site-packages/kudzu.pyc /usr/lib/python2.4/site-packages/kudzu.pyo /usr/sbin/fix-mouse-psaux /usr/sbin/kudzu /usr/share/doc/kudzu-1.2.57.1.24 ... /usr/share/locale/ta/LC_MESSAGES/kudzu.mo /usr/share/locale/te/LC_MESSAGES/kudzu.mo /usr/share/locale/tr/LC_MESSAGES/kudzu.mo /usr/share/locale/uk/LC_MESSAGES/kudzu.mo /usr/share/locale/ur/LC_MESSAGES/kudzu.mo /usr/share/locale/vi/LC_MESSAGES/kudzu.mo /usr/share/locale/wa/LC_MESSAGES/kudzu.mo /usr/share/locale/zh_CN/LC_MESSAGES/kudzu.mo /usr/share/locale/zh_TW/LC_MESSAGES/kudzu.mo /usr/share/man/man8/kudzu.8.gz |
#rpm -qlf /etc/init.d/kudzu | less
|
#vi /etc/sysconfig/hwconf
--- /tmp/l3-saved-7453.31885.8904 2010-06-05 16:09:49.000000000 +0600 +++ /etc/sysconfig/hwconf 2010-06-05 16:10:04.000000000 +0600 @@ -324,16 +324,6 @@ pcidev: 1b pcifn: 0 - -class: CDROM -bus: SCSI -detached: 0 -device: scd0 -desc: "Optiarc DVD RW AD-5240S" -host: 0 -id: 1 -channel: 0 -lun: 0 -- class: VIDEO bus: PCI detached: 0 |
#/etc/init.d/kudzu restart
Usage: /etc/init.d/kudzu {start|stop} |
#/etc/init.d/kudzu stop
|
#/etc/init.d/kudzu start
Checking for hardware changes [ OK ] |
#lspci
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03) 00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01) 00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01) 00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01) 00:1d.0 USB Controller: Intel Corporation N10/ICH7 Family USB UHCI Controller #1 (rev 01) 00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01) 00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01) 00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01) 00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) 00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01) 01:00.0 Ethernet controller: Atheros Communications Atheros AR8121/AR8113/AR8114 PCI-E Ethernet Controller (rev b0) 03:01.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02) |
#lspci -n
00:00.0 0600: 8086:2e30 (rev 03) 00:02.0 0300: 8086:2e32 (rev 03) 00:02.1 0380: 8086:2e33 (rev 03) 00:1b.0 0403: 8086:27d8 (rev 01) 00:1c.0 0604: 8086:27d0 (rev 01) 00:1c.1 0604: 8086:27d2 (rev 01) 00:1d.0 0c03: 8086:27c8 (rev 01) 00:1d.1 0c03: 8086:27c9 (rev 01) 00:1d.2 0c03: 8086:27ca (rev 01) 00:1d.3 0c03: 8086:27cb (rev 01) 00:1d.7 0c03: 8086:27cc (rev 01) 00:1e.0 0604: 8086:244e (rev e1) 00:1f.0 0601: 8086:27b8 (rev 01) 00:1f.1 0101: 8086:27df (rev 01) 00:1f.2 0101: 8086:27c0 (rev 01) 01:00.0 0200: 1969:1026 (rev b0) 03:01.0 0280: 14e4:4318 (rev 02) |
#grep 1969.*1026 /lib/modules/2.6.18-1
2.6.18-128.el5PAE/ 2.6.18-194.el5PAE/ |
#lspci -n
00:00.0 0600: 8086:2e30 (rev 03) 00:02.0 0300: 8086:2e32 (rev 03) 00:02.1 0380: 8086:2e33 (rev 03) 00:1b.0 0403: 8086:27d8 (rev 01) 00:1c.0 0604: 8086:27d0 (rev 01) 00:1c.1 0604: 8086:27d2 (rev 01) 00:1d.0 0c03: 8086:27c8 (rev 01) 00:1d.1 0c03: 8086:27c9 (rev 01) 00:1d.2 0c03: 8086:27ca (rev 01) 00:1d.3 0c03: 8086:27cb (rev 01) 00:1d.7 0c03: 8086:27cc (rev 01) 00:1e.0 0604: 8086:244e (rev e1) 00:1f.0 0601: 8086:27b8 (rev 01) 00:1f.1 0101: 8086:27df (rev 01) 00:1f.2 0101: 8086:27c0 (rev 01) 01:00.0 0200: 1969:1026 (rev b0) 03:01.0 0280: 14e4:4318 (rev 02) |
#lspci -n
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03) 00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01) 00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01) 00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01) 00:1d.0 USB Controller: Intel Corporation N10/ICH7 Family USB UHCI Controller #1 (rev 01) 00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01) 00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01) 00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01) 00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) 00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01) 01:00.0 Ethernet controller: Atheros Communications Atheros AR8121/AR8113/AR8114 PCI-E Ethernet Controller (rev b0) 03:01.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02) |
#lspci -n
00:00.0 0600: 8086:2e30 (rev 03) 00:02.0 0300: 8086:2e32 (rev 03) 00:02.1 0380: 8086:2e33 (rev 03) 00:1b.0 0403: 8086:27d8 (rev 01) 00:1c.0 0604: 8086:27d0 (rev 01) 00:1c.1 0604: 8086:27d2 (rev 01) 00:1d.0 0c03: 8086:27c8 (rev 01) 00:1d.1 0c03: 8086:27c9 (rev 01) 00:1d.2 0c03: 8086:27ca (rev 01) 00:1d.3 0c03: 8086:27cb (rev 01) 00:1d.7 0c03: 8086:27cc (rev 01) 00:1e.0 0604: 8086:244e (rev e1) 00:1f.0 0601: 8086:27b8 (rev 01) 00:1f.1 0101: 8086:27df (rev 01) 00:1f.2 0101: 8086:27c0 (rev 01) 01:00.0 0200: 1969:1026 (rev b0) 03:01.0 0280: 14e4:4318 (rev 02) |
#lspci -n
00:00.0 0600: 8086:2e30 (rev 03) 00:02.0 0300: 8086:2e32 (rev 03) 00:02.1 0380: 8086:2e33 (rev 03) 00:1b.0 0403: 8086:27d8 (rev 01) 00:1c.0 0604: 8086:27d0 (rev 01) 00:1c.1 0604: 8086:27d2 (rev 01) 00:1d.0 0c03: 8086:27c8 (rev 01) 00:1d.1 0c03: 8086:27c9 (rev 01) 00:1d.2 0c03: 8086:27ca (rev 01) 00:1d.3 0c03: 8086:27cb (rev 01) 00:1d.7 0c03: 8086:27cc (rev 01) 00:1e.0 0604: 8086:244e (rev e1) 00:1f.0 0601: 8086:27b8 (rev 01) 00:1f.1 0101: 8086:27df (rev 01) 00:1f.2 0101: 8086:27c0 (rev 01) 01:00.0 0200: 1969:1026 (rev b0) 03:01.0 0280: 14e4:4318 (rev 02) |
#lspci -n
lspci 00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03) 00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01) 00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01) 00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01) 00:1d.0 USB Controller: Intel Corporation N10/ICH7 Family USB UHCI Controller #1 (rev 01) 00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01) 00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01) 00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01) 00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) 00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01) 01:00.0 Ethernet controller: Atheros Communications Atheros AR8121/AR8113/AR8114 PCI-E Ethernet Controller (rev b0) 03:01.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02) |
#lspci -n
-n 00:00.0 0600: 8086:2e30 (rev 03) 00:02.0 0300: 8086:2e32 (rev 03) 00:02.1 0380: 8086:2e33 (rev 03) 00:1b.0 0403: 8086:27d8 (rev 01) 00:1c.0 0604: 8086:27d0 (rev 01) 00:1c.1 0604: 8086:27d2 (rev 01) 00:1d.0 0c03: 8086:27c8 (rev 01) 00:1d.1 0c03: 8086:27c9 (rev 01) 00:1d.2 0c03: 8086:27ca (rev 01) 00:1d.3 0c03: 8086:27cb (rev 01) 00:1d.7 0c03: 8086:27cc (rev 01) 00:1e.0 0604: 8086:244e (rev e1) 00:1f.0 0601: 8086:27b8 (rev 01) 00:1f.1 0101: 8086:27df (rev 01) 00:1f.2 0101: 8086:27c0 (rev 01) 01:00.0 0200: 1969:1026 (rev b0) 03:01.0 0280: 14e4:4318 (rev 02) |
#grep 8086.*27d8 /lib/modules/2.6.18-1
grep: /lib/modules/2.6.18-1: No such file or directory |
#~
00:00.0 0600: 8086:2e30 (rev 03) 00:02.0 0300: 8086:2e32 (rev 03) 00:02.1 0380: 8086:2e33 (rev 03) 00:1b.0 0403: 8086:27d8 (rev 01) 00:1c.0 0604: 8086:27d0 (rev 01) 00:1c.1 0604: 8086:27d2 (rev 01) 00:1d.0 0c03: 8086:27c8 (rev 01) 00:1d.1 0c03: 8086:27c9 (rev 01) 00:1d.2 0c03: 8086:27ca (rev 01) 00:1d.3 0c03: 8086:27cb (rev 01) 00:1d.7 0c03: 8086:27cc (rev 01) 00:1e.0 0604: 8086:244e (rev e1) 00:1f.0 0601: 8086:27b8 (rev 01) 00:1f.1 0101: 8086:27df (rev 01) 00:1f.2 0101: 8086:27c0 (rev 01) 01:00.0 0200: 1969:1026 (rev b0) 03:01.0 0280: 14e4:4318 (rev 02) |
#~
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03) 00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01) 00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01) 00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01) 00:1d.0 USB Controller: Intel Corporation N10/ICH7 Family USB UHCI Controller #1 (rev 01) 00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01) 00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01) 00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01) 00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) 00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01) 01:00.0 Ethernet controller: Atheros Communications Atheros AR8121/AR8113/AR8114 PCI-E Ethernet Controller (rev b0) 03:01.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02) |
#cat lspci | grep EHCI
cat: lspci: No such file or directory |
#lspci
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03) 00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01) 00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01) 00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01) 00:1d.0 USB Controller: Intel Corporation N10/ICH7 Family USB UHCI Controller #1 (rev 01) 00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01) 00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01) 00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01) 00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) 00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01) 01:00.0 Ethernet controller: Atheros Communications Atheros AR8121/AR8113/AR8114 PCI-E Ethernet Controller (rev b0) 03:01.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02) |
#lspci
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03) 00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01) 00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01) 00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01) 00:1d.0 USB Controller: Intel Corporation N10/ICH7 Family USB UHCI Controller #1 (rev 01) 00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01) 00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01) 00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01) 00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) 00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01) 01:00.0 Ethernet controller: Atheros Communications Atheros AR8121/AR8113/AR8114 PCI-E Ethernet Controller (rev b0) 03:01.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02) |
#cat `lspci` | grep EHCI
cat: 00:00.0: No such file or directory cat: Host: No such file or directory cat: bridge:: No such file or directory cat: Intel: No such file or directory cat: Corporation: No such file or directory cat: 4: No such file or directory cat: Series: No such file or directory cat: Chipset: No such file or directory cat: DRAM: No such file or directory cat: Controller: No such file or directory ... cat: BCM4318: No such file or directory cat: [AirForce: No such file or directory cat: One: No such file or directory cat: 54g]: No such file or directory cat: 802.11g: No such file or directory cat: Wireless: No such file or directory cat: LAN: No such file or directory cat: Controller: No such file or directory cat: (rev: No such file or directory cat: 02): No such file or directory |
#lspci
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03) 00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01) 00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01) 00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01) 00:1d.0 USB Controller: Intel Corporation N10/ICH7 Family USB UHCI Controller #1 (rev 01) 00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01) 00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01) 00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01) 00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) 00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01) 01:00.0 Ethernet controller: Atheros Communications Atheros AR8121/AR8113/AR8114 PCI-E Ethernet Controller (rev b0) 03:01.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02) |
#lspci -n
00:00.0 0600: 8086:2e30 (rev 03) 00:02.0 0300: 8086:2e32 (rev 03) 00:02.1 0380: 8086:2e33 (rev 03) 00:1b.0 0403: 8086:27d8 (rev 01) 00:1c.0 0604: 8086:27d0 (rev 01) 00:1c.1 0604: 8086:27d2 (rev 01) 00:1d.0 0c03: 8086:27c8 (rev 01) 00:1d.1 0c03: 8086:27c9 (rev 01) 00:1d.2 0c03: 8086:27ca (rev 01) 00:1d.3 0c03: 8086:27cb (rev 01) 00:1d.7 0c03: 8086:27cc (rev 01) 00:1e.0 0604: 8086:244e (rev e1) 00:1f.0 0601: 8086:27b8 (rev 01) 00:1f.1 0101: 8086:27df (rev 01) 00:1f.2 0101: 8086:27c0 (rev 01) 01:00.0 0200: 1969:1026 (rev b0) 03:01.0 0280: 14e4:4318 (rev 02) |
#grep
.autofsck etc/ misc/ root/ tmp/ .autorelabel home/ mnt/ sbin/ usr/ .bash_history lesson2/ net/ selinux/ var/ bin/ lib/ opt/ srv/ boot/ lost+found/ proc/ sys/ dev/ media/ rights/ temp/ |
#grep /8086.*2e33 /l
lesson2/ lib/ lost+found/ |
#grep /8086.*2e33 /lib/modules/2.6.18-1
grep: /lib/modules/2.6.18-1: No such file or directory |
#lspci
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03) 00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01) 00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01) 00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01) 00:1d.0 USB Controller: Intel Corporation N10/ICH7 Family USB UHCI Controller #1 (rev 01) 00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01) 00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01) 00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01) 00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) 00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01) 01:00.0 Ethernet controller: Atheros Communications Atheros AR8121/AR8113/AR8114 PCI-E Ethernet Controller (rev b0) 03:01.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02) |
#lspci -n
00:00.0 0600: 8086:2e30 (rev 03) 00:02.0 0300: 8086:2e32 (rev 03) 00:02.1 0380: 8086:2e33 (rev 03) 00:1b.0 0403: 8086:27d8 (rev 01) 00:1c.0 0604: 8086:27d0 (rev 01) 00:1c.1 0604: 8086:27d2 (rev 01) 00:1d.0 0c03: 8086:27c8 (rev 01) 00:1d.1 0c03: 8086:27c9 (rev 01) 00:1d.2 0c03: 8086:27ca (rev 01) 00:1d.3 0c03: 8086:27cb (rev 01) 00:1d.7 0c03: 8086:27cc (rev 01) 00:1e.0 0604: 8086:244e (rev e1) 00:1f.0 0601: 8086:27b8 (rev 01) 00:1f.1 0101: 8086:27df (rev 01) 00:1f.2 0101: 8086:27c0 (rev 01) 01:00.0 0200: 1969:1026 (rev b0) 03:01.0 0280: 14e4:4318 (rev 02) |
#grep /8086.*27cc /lib/modules/2.6.18-1
grep: /lib/modules/2.6.18-1: No such file or directory |
#rpm -qlf `!!`
rpm -qlf `which lspci` /sbin/lspci /sbin/setpci /sbin/update-pciids /usr/share/doc/pciutils-2.2.3 /usr/share/doc/pciutils-2.2.3/ChangeLog /usr/share/doc/pciutils-2.2.3/README /usr/share/doc/pciutils-2.2.3/pciutils.lsm /usr/share/man/man8/lspci.8.gz /usr/share/man/man8/setpci.8.gz /usr/share/man/man8/update-pciids.8.gz |
#grep 8086.*27d8 /lib/modules/2.6.18-194.el5PAE/
build modules.ieee1394map modules.symbols extra/ modules.inputmap modules.usbmap kernel/ modules.isapnpmap source modules.alias modules.ofmap updates/ modules.ccwmap modules.pcimap weak-updates/ modules.dep modules.seriomap |
#lsmod | grep ah
|
#lsmod | grep piix
ata_piix 23621 3 libata 157445 1 ata_piix |
#lspci -n
|
#lspci -n
|
#lspci -n
|
#lspci -n
|
#lsmod | grep ah
lspci -n 00:00.0 0600: 8086:2e30 (rev 03) 00:02.0 0300: 8086:2e32 (rev 03) 00:02.1 0380: 8086:2e33 (rev 03) 00:1b.0 0403: 8086:27d8 (rev 01) 00:1c.0 0604: 8086:27d0 (rev 01) 00:1c.1 0604: 8086:27d2 (rev 01) 00:1d.0 0c03: 8086:27c8 (rev 01) 00:1d.1 0c03: 8086:27c9 (rev 01) 00:1d.2 0c03: 8086:27ca (rev 01) 00:1d.3 0c03: 8086:27cb (rev 01) 00:1d.7 0c03: 8086:27cc (rev 01) 00:1e.0 0604: 8086:244e (rev e1) 00:1f.0 0601: 8086:27b8 (rev 01) 00:1f.1 0101: 8086:27df (rev 01) 00:1f.2 0101: 8086:27c0 (rev 01) 01:00.0 0200: 1969:1026 (rev b0) 03:01.0 0280: 14e4:4318 (rev 02) |
#ls /sys/
block bus class devices firmware fs kernel module power |
#ls /sys/devices/
acpi audio mixer platform sequencer system adsp dsp pci0000:00 pnp0 sequencer2 |
#ls -l /sys/devices/
total 0 drwxr-xr-x 3 root root 0 Jun 4 17:14 acpi drwxr-xr-x 3 root root 0 Jun 4 17:14 adsp drwxr-xr-x 3 root root 0 Jun 4 17:14 audio drwxr-xr-x 3 root root 0 Jun 4 17:14 dsp drwxr-xr-x 3 root root 0 Jun 4 17:14 mixer drwxr-xr-x 18 root root 0 Jun 4 17:14 pci0000:00 drwxr-xr-x 8 root root 0 Jun 4 17:14 platform drwxr-xr-x 21 root root 0 Jun 4 17:14 pnp0 drwxr-xr-x 3 root root 0 Jun 4 17:14 sequencer drwxr-xr-x 3 root root 0 Jun 4 17:14 sequencer2 drwxr-xr-x 12 root root 0 Jun 4 23:14 system |
#ls -l /sys/devices/pci0000\:00/
total 0 drwxr-xr-x 3 root root 0 Jun 4 17:14 0000:00:00.0 drwxr-xr-x 3 root root 0 Jun 5 11:21 0000:00:02.0 drwxr-xr-x 3 root root 0 Jun 4 17:14 0000:00:02.1 drwxr-xr-x 3 root root 0 Jun 4 17:14 0000:00:1b.0 drwxr-xr-x 5 root root 0 Jun 4 17:14 0000:00:1c.0 drwxr-xr-x 6 root root 0 Jun 4 17:14 0000:00:1c.1 drwxr-xr-x 4 root root 0 Jun 4 17:14 0000:00:1d.0 drwxr-xr-x 4 root root 0 Jun 4 17:14 0000:00:1d.1 drwxr-xr-x 4 root root 0 Jun 4 17:14 0000:00:1d.2 drwxr-xr-x 4 root root 0 Jun 4 17:14 0000:00:1d.3 drwxr-xr-x 4 root root 0 Jun 4 17:14 0000:00:1d.7 drwxr-xr-x 4 root root 0 Jun 4 17:14 0000:00:1e.0 drwxr-xr-x 3 root root 0 Jun 4 17:14 0000:00:1f.0 drwxr-xr-x 3 root root 0 Jun 4 17:14 0000:00:1f.1 drwxr-xr-x 5 root root 0 Jun 4 17:14 0000:00:1f.2 drwxr-xr-x 2 root root 0 Jun 4 17:14 power --w------- 1 root root 4096 Jun 4 17:14 uevent |
#find /sys -name \*03\*01\*
/sys/bus/pci/drivers/bcm43xx/0000:03:01.0 /sys/bus/pci/devices/0000:03:01.0 /sys/devices/pci0000:00/0000:00:1e.0/0000:03:01.0 |
#lspci
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03) 00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01) 00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01) 00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01) 00:1d.0 USB Controller: Intel Corporation N10/ICH7 Family USB UHCI Controller #1 (rev 01) 00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01) 00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01) 00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01) 00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) 00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01) 01:00.0 Ethernet controller: Atheros Communications Atheros AR8121/AR8113/AR8114 PCI-E Ethernet Controller (rev b0) 03:01.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02) |
#find /sys -name '*03*01*'
/sys/bus/pci/drivers/bcm43xx/0000:03:01.0 /sys/bus/pci/devices/0000:03:01.0 /sys/devices/pci0000:00/0000:00:1e.0/0000:03:01.0 |
#find /sys -name '*01:00*'
/sys/bus/pci/drivers/atheros_eth/0000:01:00.0 /sys/bus/pci/devices/0000:01:00.0 /sys/devices/pci0000:00/0000:00:1c.1/0000:01:00.0 |
Время первой команды журнала | 11:09:16 2010- 6- 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 12:26:59 2010- 6- 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 8.91 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.62 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.72 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008