{"id":285,"date":"2023-05-28T18:24:10","date_gmt":"2023-05-28T17:24:10","guid":{"rendered":"https:\/\/www.simons.tools\/en\/?p=285"},"modified":"2023-08-26T06:42:14","modified_gmt":"2023-08-26T05:42:14","slug":"bash-linux-show-largest-files-in-directory-sorted","status":"publish","type":"post","link":"https:\/\/www.simons.tools\/en\/bash-linux-show-largest-files-in-directory-sorted\/","title":{"rendered":"Bash\/Linux: Show largest files in directory, sorted"},"content":{"rendered":"\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;file&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;bash&quot;,&quot;language&quot;:&quot;HTML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;html&quot;}\">top 25 worst offenders below the current directory\n\n# -S to not include subdir size, sorted and limited to top 25\ndu -S . | sort -nr | head -25<\/pre><\/div>\n\n\n\n<p>Source: https:\/\/unix.stackexchange.com\/a\/125450<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Source: https:\/\/unix.stackexchange.com\/a\/125450<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_en_post_content":"<!-- wp:codemirror-blocks\/code-block {\"fileName\":\"bash\",\"mode\":\"htmlmixed\",\"mime\":\"text\/html\"} -->\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>top 25 worst offenders below the current directory\n\n# -S to not include subdir size, sorted and limited to top 25\ndu -S . | sort -nr | head -25<\/pre><\/div>\n<!-- \/wp:codemirror-blocks\/code-block -->\n\n<!-- wp:paragraph -->\n<p>Source: https:\/\/unix.stackexchange.com\/a\/125450<\/p>\n<!-- \/wp:paragraph -->","_en_post_name":"bash-linux-show-largest-files-in-directory-sorted","_en_post_excerpt":"","_en_post_title":"Bash\/Linux: Show largest files in directory, sorted","_de_post_content":"","_de_post_name":"","_de_post_excerpt":"","_de_post_title":"","edit_language":"en","footnotes":""},"categories":[12],"tags":[],"class_list":["post-285","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"_links":{"self":[{"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/posts\/285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/comments?post=285"}],"version-history":[{"count":1,"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/posts\/285\/revisions"}],"predecessor-version":[{"id":286,"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/posts\/285\/revisions\/286"}],"wp:attachment":[{"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/media?parent=285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/categories?post=285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.simons.tools\/en\/wp-json\/wp\/v2\/tags?post=285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}