Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
In linux, if you have two directories test1 and test2 (each with subdirectories under them), issue command to see all the files that are different in each directory (and which line in each file is different and different how)?
Answer

diff -r test1 test2

^^ note the -r for doing recursive check of all files in all subdirectories.


Question
In linux, if you have two directories test1 and test2 (each with subdirectories under them), issue command to see all the files that are different in each directory (and which line in each file is different and different how)?
Answer
?

Question
In linux, if you have two directories test1 and test2 (each with subdirectories under them), issue command to see all the files that are different in each directory (and which line in each file is different and different how)?
Answer

diff -r test1 test2

^^ note the -r for doing recursive check of all files in all subdirectories.

If you want to change selection, open document below and click on "Move attachment"

20. Advanced Shell Scripting
les. It can be used as follows: diff -u <old-file> <new-file> You can also use diff to see difference netween two directory trees. diff recursively compares all corresponding files: <span>diff -u --recursive --new-file <old-dir> <new-dir> > <patch-file>.diff The output is known as a patch file against a directory tree, that can be used both to see changes

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.