Notice in here theres a file called devices within

Info icon This preview shows pages 32–34. Sign up to view the full content.

View Full Document Right Arrow Icon
view information about the input devices connected to this system, we'd go into the input directory. Notice in here there's a file called 'devices'. Within this file we see information about the various inputdevices connected to the system, such as our keyboard and our mouse. In addition to the /proc directory, there's also another directory that's very useful called the /sys directory. /sys Directory 6:51-7:25 Let's going into /sys. /sys is just like /proc in many ways. It's also a virtual directory that is dynamically created whenever you access it. It's not actually physically stored on the hard disk drive. Like /proc, it also contains hardware information; unlike /proc, the /sys directory organizes hardware information in kind of a tree structure. From the 'ls' command we'll see what is here. For example we have the /block directory. /block contains an entry for every block device that's been discovered on the system. Basically, these are all the storage devices that have been discovered on the system. /bus Directory 7:26-9:12 We also have the /bus directory. /bus contains a subdirectory for every bus that's been implemented on the motherboard. Let's go into /bus so we can see that. Run the 'ls' command. For example, we have the PCI bus, SCSI bus, USB bus, memory bus, and so on. Let's go into the PCI directory to viewinformation about devices on the PCI bus.
Image of page 32

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
In each of these subdirectories of the /bus directory you'll find two other subdirectories. One is named 'devices' and the other is named 'drivers'. 'devices' contains entries for each device that's been discovered on that bus, so in this case we would see entries for every PCI device that's installed in the system. Then the /drivers directory contains a list of drivers that are used to support those devices. Let's go back up to the /sys directory. We also have a directory here called /devices. Let's go into that directory now. /devices is interesting because it contains, essentially, a global device hierarchy. Each hardware device that's been discovered on the system is represented in one of these subdirectories here. Each device will be shown as a subordinate device to the device that it is physically connected to in the system. Go back up to /sys. Another useful directory here is the /module directory. The module directory contains a subdirectory for each kernel module, or each hardware driver if you will, that's been loaded on the system. 'ls usb' Command 9:13-10:32 At this point we need to shift gears a little bit and look at several of the command line utilities that you can use to view hardware information on your system. I'm going to 'clear' this so we have a clean screen. One of them is the 'ls usb' command. That's a very useful command. It displays information about all of the USB devices that are currently connected to the system. Let's go ahead and run it. Here you can see a listing of all the USB devices in the system. I have some root hubs. I have a root hub here. I have a root hub here. I have a mouse and I also have my USB thumb drive right here. If you look at the bus column over here you can see that I have two USB buses, bus1 and bus2.
Image of page 33
Image of page 34
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern