Mission 323

Config substitution preview

Preview a port substitution and compare it with the unchanged source.

Text and logs
8 minutes Admin Lesson 323 of 360
sedgrepnl
Lesson 323 of 360 0/360 lessons 0/17 missions Text and logs · 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.

Preview a port change

Run sed s/443/8443/ data/config-a.conf.

sed s/443/8443/ data/config-a.conf
Confirm the source remains unchanged

Run grep listen data/config-a.conf.

grep listen data/config-a.conf
Number the source config

Run nl data/config-a.conf.

nl data/config-a.conf
Lesson support

What to notice while you play.

Objective

Build repeatable confidence with previewing a text change before editing a config.

Hint

Start with sed s/443/8443/ data/config-a.conf, inspect the result, then continue in order.

Why it matters

Previewing a text change before editing a config helps operators explain what they know before they change anything.

Common mistakes
  • Skipping the output that proves previewing a text change before editing a config.
  • Changing several things before recording a baseline.
Reference

Commands in this lesson.

grep [-i] <text> <file>

Find literal text inside a file.

sed s/old/new/ <file>

Preview simple text substitutions.

nl [file]

Number lines from a file or supported text pipeline.