Mission 39

File differences

Compare two training config files before editing either one.

Files and paths
8 minutes Core Lesson 39 of 360
diffcat
Lesson 39 of 360 0/360 lessons 0/17 missions Files and paths · 8 minutes
0%
Continue View profile
Ops lab terminal Training lab
New learnerrank 0XP 0%complete
learner@clairos:/home/learner $ Unix ops lab: type a command, press Enter
Instructions 8 minutes

Click any instruction for the command details, the why, and the common mistake to avoid.

Compare configs

Run diff data/config-a.conf data/config-b.conf.

diff data/config-a.conf data/config-b.conf
Read config A

Run cat data/config-a.conf.

cat data/config-a.conf
Read config B

Run cat data/config-b.conf.

cat data/config-b.conf
Lesson support

What to notice while you play.

Objective

Learn to compare files before deciding what changed.

Hint

Run diff on the two config files in data.

Why it matters

Diff review is central to safe administration.

Common mistakes
  • Editing before comparing.
  • Ignoring small config differences.
Reference

Commands in this lesson.

cat <file>

Print text file contents.

diff <left> <right>

Compare two lab text files.