Skip to content
Clairos Learn

Terminal basics · Lesson 32 of 34 · 8 minutes

Help before change

Build the habit of reading command guidance and current metadata first.

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

Reading help and metadata before a change helps operators explain what they know before they change anything.

help
List the commands supported by this teaching simulator.

A familiar command may support fewer flags here than in a full shell.

man
Read a short built-in teaching reference for one supported command.

For real administration, check the installed command manual and version too.

stat
Inspect a file or directory metadata record, including ownership, permissions, and size.

Metadata and file contents answer different questions.

Worked example and expected result
$ help
Simulated commands: help, pwd, ls, cd, man, which, type, env, uname, hostname, date, echo, printf, mkdir, touch, nano, cat, less, head, tail, grep, awk, sed, cut, tr, tee, xargs, wc, sort, uniq, nl, comm, diff, sha256sum, find, file, realpath, mktemp, basename, dirname, readlink, test, tar, ln, cp, mv, rm, chmod, chown, chgrp, stat, whoami, id, groups, ps, top, kill, pgrep, lsof, systemctl, journalctl, nginx, sudo, ufw, ss, ip, mount, lsblk, crontab, logrotate, launchctl, plutil, apt, dpkg, brew, ssh, scp, ssh-keygen, df, du, free, uptime, history, clear, reset.
This terminal is simulated. Commands can only change the training filesystem in your browser.

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

$ man chmod
CHMOD(1)
NAME
  chmod - change simulated permission modes
SYNOPSIS
  chmod <mode> <path>
NOTE
  In this lab, chmod changes metadata only.

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

$ stat README.txt
Path: /home/learner/README.txt
Type: file
Mode: -rw-r--r--
Owner: learner
Group: learners
Size: 148 bytes

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 “Help before change”, which interpretation is safe?

Apply it elsewhere

Before adapting the man workflow from “Help before change” to another server, what should you do?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: Terminal recovery sequenceTry 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. 01Absolute and relative path reportResolve relative names into full canonical paths.Practice
  2. 02Terminal recovery sequenceReorient, review recent work, and clear the display without losing state.Practice
  3. 03Terminal foundations bridgeCheckpoint command lookup, path resolution, output capture, and history.Practice