Linux commands: Difference between revisions

Jump to navigation Jump to search
89 bytes added ,  21 November 2018
m
Line 339: Line 339:
</pre>
</pre>


[https://www.cyberciti.biz/faq/how-do-i-find-the-largest-filesdirectories-on-a-linuxunixbsd-filesystem/ How To Find Largest Top 10 Files and Directories On Linux / UNIX / BSD - nixCraft] {{exclaim}} It may costs time to return the result if there are too many file under the specified path. Output example:
[https://www.cyberciti.biz/faq/how-do-i-find-the-largest-filesdirectories-on-a-linuxunixbsd-filesystem/ How To Find Largest Top 10 Files and Directories On Linux / UNIX / BSD - nixCraft] {{exclaim}} It may costs time to return the result if there are too many file under the specified path. Output example of {{kbd | key = <nowiki>du -a -BM /path/to/folder/ | sort -n -r | head -n 10</nowiki>}}:
<pre>
<pre>
# du -a -BM /var/ | sort -n -r | head -n 10
# du -a -BM /var/ | sort -n -r | head -n 10

Navigation menu