snipt

Ctrl+h for KB shortcuts

Bash

linux 10 largest files on folder

du -hsx * | sort -rh | head -10

Description

linux 10 largest files on folder
https://snipt.net/embed/d0a999c2ea84cd11eb72be963e5d2c3c/
/raw/d0a999c2ea84cd11eb72be963e5d2c3c/
d0a999c2ea84cd11eb72be963e5d2c3c
bash
Bash
1
2019-07-22T23:17:06
True
False
False
Dec 23, 2013 at 05:01 AM
/api/public/snipt/102129/
linux-10-largest-files-on-folder
<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>du -hsx * <span class="p">|</span> sort -rh <span class="p">|</span> head -10 </span></pre></div> </td></tr></table>
"linux commands", linux