{"id":1000,"date":"2020-08-28T08:54:27","date_gmt":"2020-08-28T08:54:27","guid":{"rendered":"http:\/\/www.tech-g.com\/?p=1000"},"modified":"2020-08-28T08:54:27","modified_gmt":"2020-08-28T08:54:27","slug":"the-du-command","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2020\/08\/28\/the-du-command\/","title":{"rendered":"The DU command"},"content":{"rendered":"\n<p>Sometimes you need to find the largest sub directory in a directory, for this, the DU command has an argument that can work for you, max-depth<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">du -h --max-depth=1 backup-final<\/pre>\n\n\n\n<p>The above will simply list all sub directories inside the backup-final directory alongside the size of the directory (recursive, including all files in sub directories)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes you need to find the largest sub directory in a directory, for this, the DU command has an argument that can work for you, max-depth du -h &#8211;max-depth=1 backup-final The above will simply list all sub directories inside the backup-final directory alongside the size of the directory (recursive, including all files in sub directories)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1000","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1000","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=1000"}],"version-history":[{"count":1,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1000\/revisions"}],"predecessor-version":[{"id":1001,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1000\/revisions\/1001"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=1000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=1000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=1000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}