Comparing two directories

Volker Wysk post at volker-wysk.de
Thu Aug 29 12:31:29 UTC 2019


Am Dienstag, den 27.08.2019, 18:38 -0400 schrieb Lee Underwood:
> I have a directory with graphics in it, i.e., Graphics/example. In
> order to include it in the shortcuts listing I renamed it, i.e.,
> Graphics/Graphics-example  (or at least that is what I thought I had
> done.). However, I somehow created a new directory with the files
> copied to it. Over time, w/o noticing, I have saved files to both
> sub-directories. How can I compare the two directories to find any
> different files?

"diff -r --brief" shows the differences of two directory trees. You
might also use "fdupes", which finds duplicates. You can also delete
them with it. 

See the man pages for details.

Cheers
Volker





More information about the ubuntu-users mailing list