Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

/proc/bus/usb/devices should not be used anymore (and can't be mounted anymore on Ubuntu 11.04)

But what is an alternative to it, for use in a terminal?

I could easily grep that output to look for a certain device, but I'm lost in all the /sys/ entries...

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

I'm not completely clear on what information you are looking to extract from that file, but almost certainly the output of the lsusb command will be able to help you.

share|improve this answer
add comment

lsusb either just lists the devices, or very verbose and dumps a lot of information, but is missing which driver owns each, what interface and alternative configuration is currently selected and in use.

v3.5-rc1 removed CONFIG_USB_DEVICEFS and in effect /proc/bus/usb/devices, but fortunately it is available in /sys/kernel/debug/usb/devices at least 2.6.39 kernel has it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.