How to find duplicate directory linux?

Asked By 20 points N/A Posted on -
qa-featured

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.

 

 

SHARE
Best Answer by andalib_neeloy
Answered By 5 points N/A #173213

How to find duplicate directory linux?

qa-featured

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.

Best Answer
Best Answer
Answered By 0 points N/A #173214

How to find duplicate directory linux?

qa-featured

 

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.
 

Related Questions