Comparing the contents of Files Flashcards
1
Q
the command to compare 2 files:
A
diff file1 file2
2
Q
the command to do side-by-side comparisons
A
sdiff file1 file2
3
Q
to highlight differences in files:
A
vimdiff file1 file2
4
Q
examples of diff output
A
$diff file1 file2
3c3
…
LineNumFile1-Action-LineNumfile2
Action=(A)dd (C)hange (D)elete