Language Selection

English French German Italian Portuguese Spanish

Understanding /proc: Part 2

Filed under
HowTos

As it was shown in the first installment of the Understanding /proc series, the /proc filesystem can be extremely useful when it comes to finding out about the processes running on your Linux system (which might have something to do with why the kernel developers decided to name it 'proc'). But /proc is also handy when it comes to learning about the devices on your system. While it is currently being deprecated in favor of the /sys filesystem for device information, /proc can still provide some valuable insight as to what you have attached to (or inside of) your computer.

Before we continue, I think a little clarification is in order. Just what do I mean by a device?

Some would say that a device is anything with a driver. While this would include the expected physical devices like a USB controller, hard drive, or a network card, there are some objects with drivers that aren't physical devices like the null device (/dev/null) or the loopback device ('lo'). Others would argue that a device is only a physical device that you can take, pick apart, or basically just a tangible object.

For the purposes of this article, I choose to go with the latter definition, and not include the so-called "virtual" devices. These will be covered in the fourth and final installment of this series, covering miscellaneous things that one can do with /proc, as well as a few practical 'real-world' scenarios.

Full Story.

More in Tux Machines

7 tips for bringing open source to networking

I thought it would be helpful to give you some tips for creating open source communities to interact with your SDN or networking hardware. I've divided the tips into two sections: Attract and Maintain. After all, what's the use in building a community if it doesn't stick around? Read more

Tech Writer Matt Hartley on Covering and Using Linux

It would be difficult to find anyone who’s been hanging in FOSS circles for more than a week or two who isn’t familiar with FOSS media maven Matt Hartley. We thought we’d invite him along for a video interview to see what he’s really like. Read more

Linux Devices/Embedded

Kernel Space/Linux