How can I find out which files differ in two directory trees?

0 votes

So, If I have 2 directory trees and I want to find the differences between two I would just execute:

diff -r dir1/ dir2/

This outputs exactly what the differences are between corresponding files but I'm interested in just getting a list of corresponding files.

How should I approach this?

Jun 13 in Linux Administration by Shubham
• 13,300 points
45 views

1 answer to this question.

0 votes

Use this;

diff -qr dir1/ dir2/
answered Jun 13 by Upasana
• 8,530 points

Related Questions In Linux Administration

0 votes
2 answers

How do I find all files containing specific text and rename in unix/linux

Hi, @Kal You can use this command below to ...READ MORE

answered Jul 2 in Linux Administration by Gitika
• 25,340 points

edited Jul 2 by Gitika 79 views
0 votes
2 answers

How do I find all files containing specific text on Linux?

grep -rnw 'text to find recursively inside ...READ MORE

answered May 20 in Linux Administration by Ritesh Singh
5,488 views
0 votes
1 answer
0 votes
1 answer

How to change permissions of folder and files in folder?

The chmod command is used to set/change the permissions ...READ MORE

answered Jan 31 in Linux Administration by Omkar
• 67,600 points
33 views
0 votes
1 answer
0 votes
1 answer

copy and create destination directory using bash

mkdir -p "$d" && cp file "$d" try ...READ MORE

answered Jul 15 in Linux Administration by Upasana
• 8,530 points
33 views
0 votes
1 answer
0 votes
1 answer

How to run Unix shell script from Java code?

ProcessBuilder pb = new ProcessBuilder("myshellScript.sh", "myArg1", "myArg2"); ...READ MORE

answered Oct 26, 2018 in Java by Daisy
• 8,050 points
178 views
0 votes
1 answer

generating a list of files with their absolute path in Linux

If you find an absolute path to start with, ...READ MORE

answered May 16 in Linux Administration by Upasana
• 8,530 points
31 views
0 votes
1 answer