Search This Blog

Wednesday, June 1, 2011

How to find Big Size File and Folder in Linux?

Here is the trick

Use the following to find the spacious directory.
#find / -type d -exec ls -ld {} \; |sort -nrk5|head

Use the following to find the spacious file.
#find / -type f -exec ls -ld {} \; |sort -nrk5|head

The output may take time depending on your system performance.

No comments:

Post a Comment