Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to get total of all dir using du

I am trying to use du to get a total of all dirs sizes and totaled at the end.

I don’t want certain dirs I would like to total everything show total at the end.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I think the answer you are looking for is this command:

du -csh tutorials/target/ tutorials/test_dir

Here is the example output:

36K tutorials/target/
12K tutorials/test_dir
48K total
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading