‘fdupes’ is a handy tool to find and list duplicates file in GNU/Linux or Unix-like operating system.
In Ubuntu you can install fdupes using apt command-line tool
apt -y install fdupes
Usage of fdupes is simple enough, just write:
fdupes -r /path/to/files/
The command will list duplicate files in the “/path/to/files”directory, which is a prime candidate for deletion.