Mission 15

Edit and verify

Create a runbook, count its lines, and inspect metadata after saving.

Nano and editing
9 minutes Beginner Lesson 15 of 360
nanowcstatcat
Lesson 15 of 360 0/360 lessons 0/17 missions Nano and editing · 9 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 9 minutes

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

Open a runbook

Run mkdir lab, then nano lab/runbook.txt.

mkdir labnano lab/runbook.txt
Count the runbook

After saving, run wc -l lab/runbook.txt.

wc -l lab/runbook.txt
Inspect metadata

Run stat lab/runbook.txt.

stat lab/runbook.txt
Lesson support

What to notice while you play.

Objective

Build a readback habit after each file change.

Hint

Save a few short lines so wc has something to count.

Why it matters

Verification catches wrong paths, failed saves, and stale assumptions.

Common mistakes
  • Trusting an edit without reading it back.
  • Checking the wrong filename.
Reference

Commands in this lesson.

nano <file>

Open a simulated nano editor.

cat <file>

Print text file contents.

wc [-l] <file>

Count lines, words, and characters.

stat <path>

Show lab file details.