{"id":167,"date":"2026-04-19T10:27:03","date_gmt":"2026-04-19T09:27:03","guid":{"rendered":"https:\/\/vpp.dk\/?linux_trick=show-disk-usage-per-directory"},"modified":"2026-04-19T10:27:03","modified_gmt":"2026-04-19T09:27:03","slug":"show-disk-usage-per-directory","status":"publish","type":"linux_trick","link":"https:\/\/vpp.dk\/?linux_trick=show-disk-usage-per-directory","title":{"rendered":"Show disk usage per directory"},"content":{"rendered":"<p>Find which directories are eating your disk space, sorted from largest to smallest.<\/p>\n","protected":false},"template":"","meta":{"_trick_code":"du -sh \/* 2>\/dev\/null | sort -rh | head -20\n\n# Show only current directory depth 1:\ndu -sh .\/*\/  | sort -rh","_trick_uploader":"diskwatcher"},"trick_category":[23,20],"class_list":["post-167","linux_trick","type-linux_trick","status-publish","hentry","trick_category-disk-storage","trick_category-system-info"],"_links":{"self":[{"href":"https:\/\/vpp.dk\/index.php?rest_route=\/wp\/v2\/linux_trick\/167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpp.dk\/index.php?rest_route=\/wp\/v2\/linux_trick"}],"about":[{"href":"https:\/\/vpp.dk\/index.php?rest_route=\/wp\/v2\/types\/linux_trick"}],"wp:attachment":[{"href":"https:\/\/vpp.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=167"}],"wp:term":[{"taxonomy":"trick_category","embeddable":true,"href":"https:\/\/vpp.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftrick_category&post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}