Sponsored by Guitar Center
When Heavy-handed Hints Fail--Guitar Center Wishlist Posters view!
guitarcenter.com - Cool personalized designs send a friendly reminder that a new Stratocaster would rock, thanks.
20 Comments
- mancat, on 10/12/2007, -1/+7/proc on Linux is a filthy abomination and should be torn out from the ground and sent on a rocket ship to the sun. Unfortunately, it can't be done now because it has become one of many Linuxisms that some scripts and applications depend on.
The rest of the Unix world uses /proc for what it was meant for, obtaining information on current running processes. I don't know when and where the Linux developers decided it was a good place to dump everything else.
As an example, if Linux were sane, we'd be using a 'sysctl' interface or a '/kern' filesystem to get non process-related information.
Nevertheless, it gets my digg for being informative for others. I guess the only way to fight a monster is to know how it works. - Bogtha, on 10/12/2007, -0/+5> As an example, if Linux were sane, we'd be using a 'sysctl' interface or a '/kern' filesystem to get non process-related information.
Good idea. They could even call it "sysfs".
http://en.wikipedia.org/wiki/Sysfs
They added this to Linux 2.5.x a few years ago. The proc information you complain about is deprecated in later kernels. - linnerd40, on 10/12/2007, -1/+5Being a complete Linux noob, I had no idea something that use full existed. I am glad I know now. Excellent little guide!
- egorgry, on 10/12/2007, -1/+3Good find. /proc is very handy! It proved very helpful back when Linux was not so user friendly, eg. Ubuntu.
+Digg - Xiol, on 10/12/2007, -0/+2Informative article but goddamn, I freakin' hate these multi-page articles!
- linuxpunk81, on 10/12/2007, -1/+3cat /proc/scsi/scsi saved my butt a couple hundred times for RAID mounting problems
- idiggit, on 10/12/2007, -0/+1The good juice is on page 3. http://www.linuxforums.org/misc/understanding_/proc_3.html
- drunkJerkface, on 10/12/2007, -0/+1$man proc ;)
Also, it should be /proc
Linux directories are case sensitive. ;) - treehead, on 10/12/2007, -0/+1;single page version:
http://www.linuxforums.org/index2.php?option=com_content&task=view&id=82&Itemid=64&pop=1&page=2 - nograz, on 10/12/2007, -0/+1I just love Gentoo. I just got done building a new system with Gentoo. It is such a breeze to install with emerge.
Though, I do have one problem, but it isn't Gentoo or linux itself really. I got some no-name brand ATI card that I just can't get OpenGL 3D acceleration working on. Which means I can't play WoW in linux currently, looks like I am going to have to upgrade my card sooner or later. - jupo, on 10/12/2007, -0/+1I really like how easily process information can be obtained on Linux compared to Windows. Working with files means your favourite scripting language can easily access the info.
- nuxrl, on 10/12/2007, -1/+1Thanks for the post, very informative.
+Digg - prockcore, on 10/12/2007, -1/+1looks at nick.. hey!
- eltaito, on 10/12/2007, -1/+1thanks for the post....really helpful
- inactive, on 10/12/2007, -2/+2if you used gentoo, you would have known a part of this, like me :)
another thumbs up for gentoo :) - GreenSlabOfClay, on 10/12/2007, -2/+2"most people will go their whole life without ever needing to to this."
What is that about a to to?
Good post, but part 2 will be more informative if you talk about modules, interrupts, ioports, cpuinfo, interrupts, devices, meminfo, pci, dma and filesystems.
Actually, you don't even need a part 2.
Just cat those files and it's pretty much self explanatory. - jtizzle, on 10/12/2007, -1/+1try using /proc instead of /Proc. (case sensitive)
- spliznork, on 10/12/2007, -1/+0sysfs (/sys) is nice, too, and it is the eventual successor to procfs (/proc). sysfs has been in around all 2.6 kernels. http://en.wikipedia.org/wiki/Sysfs
- 3ch0, on 10/12/2007, -4/+1Perfect!
- soulrubble, on 10/12/2007, -6/+1ls: /Proc: No such file or directory
funny how the original article got the case right, but the digg story didn't...


What is Digg?