snipt

Ctrl+h for KB shortcuts

Bash

List directories by size (1 level)

sudo du --max-depth=1 . | sort -nr
https://snippets.siftie.com/embed/2f516f0c17d6478da6668dba59cf2677/
/raw/2f516f0c17d6478da6668dba59cf2677/
2f516f0c17d6478da6668dba59cf2677
bash
Bash
1
2019-04-09T17:48:50
True
False
False
/api/public/snipt/27179/
list-directories-by-size-1-level
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>sudo du --max-depth<span class="o">=</span><span class="m">1</span> . <span class="p">|</span> sort -nr </span></pre></div> </td></tr></table>
bash, shell