How to Remove Duplicate Files on Linux
Find and remove duplicate files on Linux to recover storage and reduce clutter using Kudu.
By Kudu Team
Fix this automatically with Kudu
Run a free system scan to detect and resolve this issue automatically — no manual steps required.
Download Kudu Free →What Causes This?
Duplicate files on Linux usually build up over time from repeated downloads, copied folders, backups, sync conflicts, and app-generated cache or export files. This is especially common if you move files between drives, use cloud storage, or keep multiple versions of photos, videos, and documents without realizing it. In some cases, duplicates are exact matches; in others, they have different names but identical content.
Common Symptoms
- Your Linux drive keeps running low on space for no obvious reason
- You notice multiple copies of the same photos, videos, documents, or downloads
- File searches return several nearly identical results
- Backups take longer and use more storage than expected
- Important folders like Downloads, Desktop, or Pictures feel cluttered and hard to manage
How to Fix It Manually
If you want to remove duplicate files yourself, Linux gives you a few reliable ways to find them. Be careful before deleting anything, especially in system folders or backup locations.
-
Start by checking which folders are using the most space
- Open your file manager.
- Look through common problem folders like Downloads, Documents, Desktop, Pictures, and Videos.
- Sort files by Size or Date Modified to spot repeated downloads or copied files quickly.
-
Use the
findcommand to locate files with the same name- Open Terminal.
- Run a command like this to search a folder:
find ~/Downloads -type f | sed 's|.*/||' | sort | uniq -d - This shows duplicate file names, which is useful for a quick check, but it does not confirm the files have identical contents.
-
Use a duplicate file finder for exact matches
- Install
fdupesif it is not already installed:- Ubuntu/Debian:
sudo apt install fdupes - Fedora:
sudo dnf install fdupes - Arch:
sudo pacman -S fdupes
- Ubuntu/Debian:
- Scan a folder recursively:
fdupes -r ~/Downloads - Review the results carefully. Files listed together are duplicates based on content, not just name.
- Install
-
Delete duplicates carefully
- To delete manually, use the file paths shown by
fdupesand remove only the copies you do not need. - You can delete from the file manager, or use Terminal:
rm "/path/to/duplicate-file" - Avoid deleting files from
/etc,/usr,/var, or other system directories unless you are absolutely sure they are safe to remove.
- To delete manually, use the file paths shown by
-
Use interactive cleanup if you want prompts
- Run:
fdupes -rd ~/Downloads - This asks you which duplicate copies to keep and which to remove.
- Read each prompt closely so you do not delete the wrong file.
- Run:
-
Empty the Trash and recheck free space
- Open the Trash in your file manager.
- Permanently delete the files you removed.
- Check available disk space again with:
df -h
Fix It Automatically with Kudu
If you do not want to scan folders and compare files manually, Kudu can detect duplicate files automatically and help you remove them safely. It makes it easier to recover storage, reduce clutter, and avoid deleting the wrong files by mistake.
Fix this automatically with Kudu
Run a free system scan to detect and resolve this issue automatically — no manual steps required.
Download Kudu Free →Related guides
How to Remove Leftover Files After Uninstalling Programs on Linux
Clean leftover files and cache after uninstalling apps on Linux safely with Kudu.
How to Remove Duplicate Files on Mac
Free up storage on macOS by finding and removing duplicate files with Kudu’s cleanup features.
How to Remove Duplicate Files on Windows
Find and remove duplicate files on Windows to recover valuable disk space with Kudu’s cleanup features.
How to Remove App Cache on Linux
Clean application cache on Linux to recover space and reduce clutter using Kudu.