diff --git a/exercises/shell/solutions/directories_comparision.md b/exercises/shell/solutions/directories_comparision.md new file mode 100644 index 0000000..c94d047 --- /dev/null +++ b/exercises/shell/solutions/directories_comparision.md @@ -0,0 +1,13 @@ +## How to compare two directories in Linux? + +You can use the 'diff' command with the '-r' flag to compare two direcotries recursively. + + + +### Example: +'''bash +diff -r folder1/ folder2/ + +This command compares all the files and subdirectories inside 'folder1' and 'folder2'. +If both directories have identical contents, it retuns nothing. +If there are differences,it showss which files differ or are missing.