In Linux, if I have two directories, how I can see the differences of content in these directories?
Now I use this command:
diff <(ls -d dir1/*) <(ls -d dir2/*)
Any other idea?
Why not use diff on the directories themselves?
diff
$ tree . |-- test1 | |-- bar | `-- foo `-- test2 |-- baz `-- foo
The result:
$ diff test1 test2 Only in test1: bar Only in test2: baz
-r
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the privacy policy and terms of service.
tagged
asked
11 months ago
viewed
1027 times
active