Comparing two directories
Olivier
Olivier.Nicole at cs.ait.ac.th
Wed Aug 28 01:32:46 UTC 2019
Lee Underwood <mail at leeunderwood.org> writes:
> 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 directory1 directory2
It will tell you what directory exists only in one hierarchy, whay files
are uniques, what files exist with the same name but different contents.
Olivier
--
More information about the ubuntu-users
mailing list