zoukankan      html  css  js  c++  java
  • ls系列小工具

    ls系列小工具

     

    转载时请注明出处和作者联系方式:http://blog.csdn.net/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~~

     
  • 相关阅读:
    杭电 1013 Digital Roots
    杭电 1040 As Easy As A+B 【排序】
    杭电 2092 整数解
    bzoj3223
    bzoj3224
    LA3905
    bzoj3601
    bzoj1002
    bzoj3105
    bzoj3332
  • 原文地址:https://www.cnblogs.com/zhangyunlin/p/6167762.html
Copyright © 2011-2022 走看看