linux2.6.31,linux2.6.31版本以后usb/devices输出信息使用usb-devices查看

因工作需要,查看挂载在ubuntu13.04上的一款usb设备的Product和Vendor信息,发现cat /proc/bus/usb/devices文件不存在

后来发现在linux2.6.31以后的版本 相关信息要在usb-devices中查看

man usb-devices信息截取

usb-devices(1)                                                           Linux USB Utilities                                                           usb-devices(1)

NAME

usb-devices - print USB device details

SYNOPSIS

usb-devices

DESCRIPTION

usb-devices is a (bash) shell script that can be used to display details of USB buses in the system and the devices connected to them.

...

/proc/bus/usb/devices

Location where the usb/devices file can normally be found for Linux kernels before 2.6.31, if usbfs is mounted.

输出信息:

T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 13 Spd=12  MxCh= 0 D:  Ver= 0.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1 P:  Vendor=23d8 ProdID=0285 Rev=01.00 S:  Manufacturer=CREATOR(CHINA)TECH CO.,LTD S:  Product=CRT-285 S:  SerialNumber=S130622000 C:  #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=400mA I:  If#= 0 Alt= 0 #EPs= 2 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值