How to find large files on Linux

What can you do if the memory on your Linuxx machine is almost full? You can free up space by deleting or moving some files, and you should probably start with the largest files.

Discover how to find large files and duplicate files to free up more usable space and improve system performance.

Find large files using GUI tools

The easy way first. QDirStat is a GUI application for the Linux desktop that you can install using this terminal command:

sudo apt install qdirstat

When running QDirStat, it will ask you to select a folder to scan before listing the size of the folder and the files in it. You can then use the Discover > Largest Files menu item to find the largest files. In the Locate Files window , sort them by Size and you will see the largest files in descending order.

Picture 1 of How to find large files on Linux
Picture 2 of How to find large files on Linux
Picture 3 of How to find large files on Linux
Picture 4 of How to find large files on Linux

You may notice that QDirStat shows some folders in red. This means you do not have read permission to access those folders.

To resolve the issue, run the program with superuser rights as follows:

sudo qdirstat

Picture 5 of How to find large files on Linux
Picture 6 of How to find large files on Linux
Picture 7 of How to find large files on Linux
Picture 8 of How to find large files on Linux

Find large files using FTP software

FileZilla FTP application has great file search features that you can use on your local machine. Make sure SSH is installed, or install with:

sudo apt install ssh

Next, install FileZilla using this command:

sudo apt install filezilla

Picture 9 of How to find large files on Linux
Picture 10 of How to find large files on Linux
Picture 11 of How to find large files on Linux

After installing FileZilla, you can use it to search your local files:

1. Open FileZilla and connect using the following credentials:

Host:

localhost

Username:

Your username

Password:

Your password

Port:

22

2. Once you're connected, select Server from the menu, then select Search remote files .

3. Select the Search folder and in Search conditions , select File size from the drop-down box and, for example, greater than 100MB.

4. Clicking Search will only show you files of the desired size.

You can filter the search further by adding conditions, for example, the video file has the MP4 extension.

Picture 12 of How to find large files on Linux
Picture 13 of How to find large files on Linux
Picture 14 of How to find large files on Linux
Picture 15 of How to find large files on Linux

Tip : This process is also useful when you want to search large files on a remote Linux server, especially if you don't have access to a terminal. You will need to replace the authentication information with the FTP details.

Update 27 July 2024
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile