Top six big files in Linux eating out your space
$ du -hsx * | sort -rh | head -6
12G ebportal-08092015.dmp
12G ebportal-06092015.dmp
11G oracle11204Patch
8.8G old_temptables.dmp
7.1G fullexp_Tue.dmp
6.0G ebportal-07092015.dmp
Explanation of commands and switches.
- du – Estimate file space usages
- -hsx – (-h) Human Readable Format, (-s) Summaries Output, (-x) One File Format, skip directories on other file format.
- sort – Sort text file lines
- -rh – (-r) Reverse the result of comparison, (-h) for compare human readable format.
- head – output first n lines of file.
Tags:
Linux