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, 2019 in Linux Administration by Shubham
• 13,370 points
63 views

1 answer to this question.

0 votes

Use this;

diff -qr dir1/ dir2/
answered Jun 13, 2019 by Upasana
• 8,570 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, 2019 in Linux Administration by Gitika
• 25,460 points

edited Jul 2, 2019 by Gitika 101 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, 2019 in Linux Administration by Ritesh Singh
7,453 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, 2019 in Linux Administration by Omkar
• 68,880 points
51 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, 2019 in Linux Administration by Upasana
• 8,570 points
56 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,080 points
573 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, 2019 in Linux Administration by Upasana
• 8,570 points
52 views
0 votes
1 answer

How to convert DOS line endings to Linux line endings in vim?

try this; :%s/\r/\r/g READ MORE

answered May 24, 2019 in Linux Administration by Upasana
• 8,570 points
75 views