Skip to content
Clairos Learn

Nano and editing · Lesson 4 of 27 · 9 minutes

Nano runbook

Create a small operational runbook in simulated nano.

Mastery 0/3Run itExplain itApply it
learner@clairosSimulated Linux lab
learner@clairos:~ $
↑ history · Tab complete · Ctrl+C cancel · Esc, Tab to leaveExit 0

Understand the pattern

Written runbooks lower mistakes during stressful operations.

mkdir
Create a directory. -p also creates missing parent directories and accepts an existing directory.

Creating a folder does not change the current directory.

nano
Edit a virtual text file using the browser editor and explicitly save it.

Opening the editor does not complete a write task. Save and verify the contents.

cat
Read one or more files to standard output without editing their contents.

Reading a source file should precede changing it; avoid printing real secrets.

Worked example and expected result
$ mkdir -p lab
(no output; exit 0)

Exit status: 0. The command completed successfully in the training fixture.

$ nano lab/runbook.md
Opening simulated nano for /home/learner/lab/runbook.md. Save or cancel in the browser.

Exit status: 0. The command completed successfully in the training fixture.

$ Save the editor buffer
# Nano runbook
status=reviewed
evidence=recorded
rollback=ready

Exit status: 0. The command completed successfully in the training fixture.

$ cat lab/runbook.md
# Nano runbook
status=reviewed
evidence=recorded
rollback=ready

Exit status: 0. The command completed successfully in the training fixture.

Try a variation

Repeat this workflow in the sandbox with a different scratch filename. Keep the system fixtures unchanged and compare the observed output with your expectation before moving on.

Explain it

In “Nano runbook”, which interpretation is safe?

Apply it elsewhere

Before adapting the nano workflow from “Nano runbook” to another server, what should you do?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: Nano SSH config copyTry an incident drill

Anonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.

Keep learning

  1. 01Edit and verifyCreate a runbook, count its lines, and inspect metadata after saving.Practice
  2. 02Nano SSH config copyCopy SSH config to the lab and inspect it after opening nano.Practice
  3. 03Nano env exampleCreate a simulated env example without storing real secrets.Practice