On 14 July 2014 6:53:30 AM AEST, Joseph <syscon...@gmail.com> wrote:
>On 07/13/14 23:25, Dimitri Semitsoglou-Tsiapos wrote:
>>On Sun, 13 Jul 2014 14:03:41 -0600
>>Joseph <syscon...@gmail.com> wrote:
>>
>>> I'm trying to clean up my home directory by locating large disk
>>> files. I used: find / -type f -size +20000k -exec ls -lh {} \; | awk
>>> '{ print $8 ": " $5 }'
>>
>>Take a look here regarding why you should never parse ls' output:
>>http://mywiki.wooledge.org/ParsingLs
>>
>>You can use ncdu or xdiskusage (both available in portage) to get more
>>useful output. Both will allow you to track down large folders, not
>>just single files (for example cache folders tend to hold a large
>>amount of tiny files, which may collectively amount for a large chunk
>>of your hard disk space).
>>
>
>Thanks folks, so in this case I guess:
>find / -type f -size +20000k -exec du -h {} \;
>
>is the winner (it does the trick).

Pipe that through sort -h to get the files sorted by size

-- 
:B

Reply via email to