Exploring /proc File System in Linux

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Rob Krul

Rob is an avid user of Linux and Open Source Software, with over 15 years experience in the tech geek universe. Aside from experimenting with the many flavors of Linux, he enjoys working with BSDs, Solaris, and OS X. He currently works as an Independent IT Contractor.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

5 Responses

  1. situn says:

    /proc directory have 0kb files but there are some files which have some size what are those files?

  2. Paul R says:

    Minor issue – it’s /proc/consoles (with an s at the end)

    Also you might want to add mention of /proc/self and why this happens:

    [email protected]:~$ cd /proc/self
    [email protected]:/proc/self$ readlink -e .
    [email protected]:/proc/self$ readlink -e /proc/self

  3. Ricky Tan says:

    Thanks for the info sir.. very much appreciated

  4. Rob Krul says:

    Depending on what type of hardware you have, you can get a lot of information in some of the /proc files. Since you were asking specifically about your video card, you can run:

    $ cat /proc/pci

    If it is using an ISA slot, you can run the following:

    $ cat /proc/isapnp

    If you are looking for your hard drive info:

    cat /proc/scsi/scsi

    The man page of /proc/ will give you plenty of info about any file in the /proc directory.

    Of course, there are easier ways to obtain this information, and utilities that are much more script-friendly. lshw is the first:

    $ lshw -class disk

    There is also hwinfo:

    $ hwinfo –disk

    And the very script-friendly lsblk:

    $ lsblk -io KNAME,TYPE,SIZE,MODEL

    All three of those utilities are available through apt or yum.

  5. Ricky Tan says:


    Just a question, what file in /proc will I know the brand of my hard disk? memory video card? is it all located in /proc?


Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.