想查看一下我的U盘是不是USB 2.0的,所以按照google以及书上的方法,到/proc/bus/下面,结果没有发现usb目录,只有input和pci目录,进入到pci目录下面,大喜,有devices文件,可是cat后发现不是详细的usb信息……
经过半小时的探索,知道了,可以通过
代码: 全选
usb-devices
最后又
代码: 全选
man usb-devices
,再继续看发现The script is primairily intended to be used if the file is not available.
查看了下内核版本,已经是2.6.32了……(kernel的变化好快啊)/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.
最后问题基本解决,但是我的理解/sys与/proc是派生的关系,即/sys里的内容,都会在/proc中找到,不知道现在这样的理解还对不对了?望大侠指点