Comparing the contents of Files Flashcards

1
Q

the command to compare 2 files:

A

diff file1 file2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

the command to do side-by-side comparisons

A

sdiff file1 file2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

to highlight differences in files:

A

vimdiff file1 file2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

examples of diff output

A

$diff file1 file2
3c3

LineNumFile1-Action-LineNumfile2

Action=(A)dd (C)hange (D)elete

How well did you know this?
1
Not at all
2
3
4
5
Perfectly