ls系列小工具

ls系列小工具

转载时请注明出处和作者联系方式:http://blog.youkuaiyun.com/absurd

作者联系方式:Li XianJing <xianjimli at hotmail dot com>

更新时间:2006-12-26

1. lspci 列出所有PCI设备。

00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)

00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 01)

00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 08)

00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)

00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB

00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)

00:0f.0 VGA compatible controller: VMware Inc [VMware SVGA II] PCI Display Adapter

00:10.0 SCSI storage controller: BusLogic BT-946C (BA80C30) [MultiMaster 10] (rev 01)

00:11.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)

00:12.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 02)

2. lsusb 列出所有USB

Bus 001 Device 005: ID 0ac8:301b

Bus 001 Device 001: ID 0000:0000 Virtual Hub

3. lsof 列出所有打开的文件。

acpid 1957 root cwd DIR 3,1 4096 2 /

acpid 1957 root rtd DIR 3,1 4096 2 /

acpid 1957 root txt REG 3,1 21992 956253 /usr/sbin/acpid

acpid 1957 root mem REG 3,1 126648 99544 /lib/ld-2.3.5.so

acpid 1957 root mem REG 3,1 1489572 99545 /lib/libc-2.3.5.so

acpid 1957 root mem REG 0,0 0 [heap] (stat: No such file or directory)

acpid 1957 root 0r CHR 1,3 2274 /dev/null

acpid 1957 root 1w REG 3,1 12166 132822 /var/log/acpid

acpid 1957 root 2w REG 3,1 12166 132822 /var/log/acpid

acpid 1957 root 3r REG 0,3 0 4026532097 /proc/acpi/event

acpid 1957 root 4u unix 0xcde87080 5483 /var/run/acpid.socket

acpid 1957 root 5u unix 0xc5410800 14714 /var/run/acpid.socket

4. lsmod列出所有已加载的内核模块。

Module Size Used by

md5 4033 1

ipv6 268097 12

parport_pc 28933 1

lp 13001 0

parport 40585 2 parport_pc,lp

vmhgfs 47664 4

autofs4 29253 2

rfcomm 42333 0

l2cap 30661 5 rfcomm

bluetooth 56133 4 rfcomm,l2cap

sunrpc 167813 1

ipt_REJECT 5569 1

ipt_state 1857 4

ip_conntrack 41497 1 ipt_state

iptable_filter 2881 1

ip_tables 19521 3 ipt_REJECT,ipt_state,iptable_filter

dm_mod 58101 0

video 15941 0

button 6609 0

5. lsattr 列出ext2文件系统下的文件属性(参考chattr)。

------------- ./test.c

------------- ./Makefile

------------- ./autoscan.log

------------- ./autom4te.cache

------------- ./configure.in

------------- ./configure

------------- ./COPYING

------------- ./NEWS

------------- ./README

------------- ./AUTHORS

------------- ./ChangeLog

-----a------- ./test.log

6. lshal 列出HAL中的设备。

udi = '/org/freedesktop/Hal/devices/acpi_ACAD'

info.udi = '/org/freedesktop/Hal/devices/acpi_ACAD' (string)

linux.hotplug_type = 4 (0x4) (int)

ac_adapter.present = true (bool)

info.capabilities = {'ac_adapter'} (string list)

info.category = 'ac_adapter' (string)

info.product = 'AC Adapter' (string)

info.parent = '/org/freedesktop/Hal/devices/computer' (string)

linux.acpi_type = 3 (0x3) (int)

linux.acpi_path = '/proc/acpi/ac_adapter/ACAD' (string)

~~end~~

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值