Command history
Run a few safe commands, review history, and clear the display without resetting state.
Understand the pattern
History can help repeat safe commands, but it can also reveal pasted secrets in real shells.
echo- Write simple text to standard output. Prefer printf when exact formatting matters.
Redirection can overwrite an existing file before the command runs.
history- Review commands entered during this session. History is a navigation aid, not evidence that a command succeeded.
Completion in this release checks command outcomes, not history strings alone.
clear- Clear visible terminal output without erasing files or earned progress.
Clearing the screen is not the same as resetting the lab.
Worked example and expected result
$ echo trainingtraining
Exit status: 0. The command completed successfully in the training fixture.
$ history1 echo training
Exit status: 0. The command completed successfully in the training fixture.
$ clear(no output; exit 0)
Exit status: 0. The command completed successfully in the training fixture.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: Manual pagesTry an incident drillAnonymous 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.