comparing two directory structures

comparing two directory structures

Gabor Szabo szabgab at gmail.com
Sat Sep 4 12:21:40 IDT 2010


hi,

I guess there is an obvious command for this, I just don't know it.

How can I compare two directory structures if the content is the same
*disregarding*
actual file content, or comparing that only if the file names and
sizes are the same?

As I understand diff -r  would do it but it would also compare files
line by line.

As these are images and movies, I don't want to compare them line by
line or event byte by byte.
As a first approximation I only want to list files that exists in one
directory but not in the other
or when the files have different size.

Gabor



More information about the Linux-il mailing list