Mission 350

Script change review

Compare configuration snapshots and record a review marker.

Shell scripting
8 minutes Advanced Lesson 350 of 360
diffgreptee
Lesson 350 of 360 0/360 lessons 0/17 missions Shell scripting · 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.

Review config differences

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

diff data/config-a.conf data/config-b.conf
Identify the changed listener

Run grep listen data/config-b.conf.

grep listen data/config-b.conf
Record the review

Run printf script-change-reviewed | tee lab/script-change.txt.

printf script-change-reviewed | tee lab/script-change.txt
Lesson support

What to notice while you play.

Objective

Build repeatable confidence with reviewing change evidence before script-driven deployment.

Hint

Start with diff data/config-a.conf data/config-b.conf, inspect the result, then continue in order.

Why it matters

Reviewing change evidence before script-driven deployment helps operators explain what they know before they change anything.

Common mistakes
  • Skipping the output that proves reviewing change evidence before script-driven deployment.
  • Changing several things before recording a baseline.
Reference

Commands in this lesson.

grep [-i] <text> <file>

Find literal text inside a file.

tee <file>

Write piped text to a lab file and keep it on screen.

diff <left> <right>

Compare two lab text files.