Snippets

Get directory size using Linux command

du -hs /var/www/

You may omit the directory path if you'd like to find out the size of the current directory that you are in.

du -hs

For more Linux/Unix commands, visit Useful Linux Commands page or refer to the following book.

10 thoughts on “Get directory size using Linux command

  1. This is what I was looking for. – Great Thanks

  2. I knew there must have been such a command ;) Thanks.

  3. Fantastic, just what I was looking for. Great site by the way, I will be back here!

  4. one additional tip

    ypu can type

    du -hs /home/public/*

    to list out all directory’s size in /home/public folder

  5. Great blog, thank you very much for the inspiration,,,,,,,,,,,,
    We provide exclusive access to top grade independent golf projects and producers.
    Thanks By,
    Hasan

  6. I recently came across this blog and have loved the content. I look forward to future content and will definitely link to this and tell the people I know. Thanks.

Comments are closed.

Twitter
LinkedIn
YouTube
Instagram