$
Linux Practice
Practice
Tutorials
English
한국어
日本語
中文
terminal
Welcome to Linux Practice Terminal!
Type "help" to see available commands.
user
@linux:
~
$
diff (File Comparison)
Reset Lesson
Compare two files and understand the differences using diff.
Step 1
First, view the original config file.
Type: cat documents/config.txt
cat documents/config.txt
Step 2
Now view the new config file to spot differences.
Step 3
Use diff to compare the two config files.
Step 4
Compare two completely different files to see how diff handles that.