Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In terms of content, what is the difference between these 4 folders?

  • /dev/usb
  • /proc/bus/usb
  • /sys/bus/usb
  • /sys/class/usb_device

I found many symlinks between those folders, many redundant information. More generically what is the idea/purpose in the first place of each of these folders?

share|improve this question

Take from the wikipedia:

/dev Essential devices, e.g., /dev/null.

/proc Virtual filesystem documenting kernel and process status as text files, e.g., uptime, network. In Linux, corresponds to a procfs mount.

/sys Modern Linux distributions include a /sys directory as a virtual filesystem (sysfs, comparable to /proc, which is a procfs), which stores and allows modification of the devices connected to the system, whereas many traditional UNIX and Unix-like operating systems use /sys as a symbolic link to the kernel source tree

share|improve this answer
1  
Thanks but my question is specific to usb and usb only. – m-ric Oct 15 '12 at 15:58

as also mentioned https://su/q/alternative-to-proc-bus-usb-devices, /proc/bus/usb/devices is deprecated. see Kconfig documentation.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .