How to Find Large Files in Linux
How to get a list of the largest files on your Linux machine? Here's a quick tip!
How to Find Large Files
In order to find large files on the current volume, in this example files above 200 MB, type the following:
find / -xdev -type f -size +200M
If you want to find large files on any volume on your Linux machine, simply remove the -xdev flag:
find / -type f -size +200M
If you're running Unix or any other non-Linux POSIX system, you may need to change "200M" to the corresponding byte string:
find / -xdev -type f -size +204800000c
Results
The commands above will show a list of all the files that are larger than 200 MB, and list them in the terminal. After that you have to decide which files you can delete and which files you want to keep.
Details
- Title: How to Find Large Files in Linux
- Published:
- Author: Andrew Young
- Categories: SSH Guides + Linux Guides