10 Useful du (Disk Usage) Commands to Find Disk Usage of Files and Directories

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

Ravi Saive

Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.

TecMint users Get a Free Domain and 30% off on Inmotion Web Hosting - Signup with Inmotion Now!

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

You may also like...

11 Responses

  1. Akash says:

    thanks a ton :)

  2. Koti says:


  3. Manoj says:

    Hi Ravi,

    Can you please help me with a command which can provide the Disk I/O Limit.

    Please Note that, i am asking for the Disk I/O limit not the current io rate given by iostat.

    Manoj Rana

  4. Finch says:

    very handy. this helped me free up my disk space.

  5. zamaan says:

    helpful tips. thank you.

  6. Yolanda says:

    Thank you for this. It is very helpful to me! I appreciate you sharing your knowledge.

  7. dt64 says:

    another nice option I found very handsome:

    du -h –max-depth=1

  8. luis says:

    thanks this is what i was looking for.

  9. Fadi El-Eter says:

    Is there a way to only include certain types of files.

    For example, something like:

    du -ah –include=”*.php” /home/tecmint

    PS: That’s a very helpful post – thanks for sharing!

    • Nate says:

      You can run any command that gives you results in linux/unix by piping it through a grep command. So all you need to accomplish your task is something simple like du -ah | grep php. It would not accomplish your task perfectly since you would get files with php in the name as well but you would dig up all the .php files.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Join Over 62000+ Linux Users
  1. 47558
  2. 2150
  3. 11343

Enter your email to get latest Linux Howto's