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.

Receive Your Free Complimentary eBook 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...

12 Responses

  1. Shgy says:

    Thanks.. Its really useful…

  2. Akash says:

    thanks a ton :)

  3. Koti says:

    Helpful

  4. 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.

    Regards,
    Manoj Rana

  5. Finch says:

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

  6. zamaan says:

    helpful tips. thank you.

  7. Yolanda says:

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

  8. dt64 says:

    another nice option I found very handsome:

    du -h –max-depth=1

  9. luis says:

    thanks this is what i was looking for.

  10. 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=""> <s> <strike> <strong>

Join Over 70000+ Linux Users
  1. 48590
  2. 2375
  3. 13200

Enter your email to get latest Linux Howto's