Hi Experts,
How to find duplicate directory Linux? I have this problem with my computer that has an operating system of Linux, there are files in the directory with the same file name and I am confused why is this happening wherein it is not supposed to be duplicated. I hope you can give me a solution for this.
How to find duplicate directory linux?
Hello Virginia
Files with same name present in same directory, this is not possible. There might be some confusion. To solve this issue please provide the output of ls command (ls -l </path/to/directory>) for the directory in which you are experiencing the problem.
Thank You.
-Jack Hostler.
How to find duplicate directory linux?
You can find any duplicate by using a program called fdupes. It is not by default installed in Linux. You have to install first typing following command
sudo apt-get install fdupes
to find any duplicate file you have to run following command
sudo fdupes /etc/
/etc/.pwd.lock
/etc/mtab.fuselock
/etc/magic
/etc/magic.mime
to find in any sub folder please run below command
sudo fdupes -r /etc
these all will guide you to find your duplicate files.
Thanks. hope this will help you.