Friday, March 29, 2013

Find Large Files on Linux

# find / -type f -size +2000000k -exec ls -l {} \;

-rw-------  1 root root 3059384320 Mar 28 21:04 /usr2/SW/core.320

-rw-------  1 root root 3066548224 Mar 12 02:03 /usr2/SW/core.445

Command above will search and display files larger than 2,000,000 kB (2 GB)

# find / -type f -size +10000k -exec ls -l {} \; | sort +4 -nr

Command above will search and SORT by SIZE. Larger size on top to bottom.

No comments:

Post a Comment