Mission 04

Command history

Run a few safe commands, review history, and clear the display without resetting state.

Terminal basics
6 minutes Beginner Lesson 4 of 360
echohistoryclear
Lesson 4 of 360 0/360 lessons 0/17 missions Terminal basics · 6 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 6 minutes

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

Print a marker

Run echo training.

echo training
Show history

Run history.

history
Clear output

Run clear.

clear
Lesson support

What to notice while you play.

Objective

Understand the difference between clearing the screen and resetting the lab.

Hint

Run echo training first so history has something to show.

Why it matters

History can help repeat safe commands, but it can also reveal pasted secrets in real shells.

Common mistakes
  • Thinking clear deletes command history.
  • Putting secrets into shell commands.
Reference

Commands in this lesson.

echo <text>

Print text or write lab notes with >.

history

Show recent commands.

clear

Clear terminal output.