We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf44009 commit 3d30c2cCopy full SHA for 3d30c2c
exercises/shell/solutions/directories_comparision.md
@@ -0,0 +1,13 @@
1
+## How to compare two directories in Linux?
2
+
3
+You can use the 'diff' command with the '-r' flag to compare two direcotries recursively.
4
5
6
7
+### Example:
8
+'''bash
9
+diff -r folder1/ folder2/
10
11
+This command compares all the files and subdirectories inside 'folder1' and 'folder2'.
12
+If both directories have identical contents, it retuns nothing.
13
+If there are differences,it showss which files differ or are missing.
0 commit comments