snipt

Ctrl+h for KB shortcuts

Text only

Linux Directory by Size

1
2
3
4
du -h --max-depth=1 | sort -hr


df -h
https://snipt.net/embed/2515d7ab0c9f9dd73608279f4243a53f/
/raw/2515d7ab0c9f9dd73608279f4243a53f/
2515d7ab0c9f9dd73608279f4243a53f
text
Text only
4
2024-05-19T15:40:51
True
False
False
/api/public/snipt/67/
linux-directory-by-size
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>du -h --max-depth=1 | sort -hr </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a>df -h </span></pre></div> </td></tr></table>
linux
1
2
3
4
5
6
7
--- 
+++ 
@@ -1 +1,4 @@
-du -h --max-depth=1 | sort -hr+du -h --max-depth=1 | sort -hr
+
+
+df -h
1
2
3
4
--- 
+++ 
@@ -0,0 +1 @@
+du -h --max-depth=1 | sort -hr