Quest 18Journalist
+200 XP
Appending to Files
Launch Interactive Terminal for This Quest→No installation required • Runs fully in browser
Concept & Overview
Instead of cleaning the chalkboard, what if you just want to add a new line at the bottom? In Linux, we add text to the end of a file without touching the existing content using the >> (append redirection) operator.
- The >> operator appends your new text to the very bottom of the file. E.g., echo "New Line" >> logs.txt adds "New Line" to the end of logs.txt while keeping all your old logs safe.
Mission Instructions
Let's add a line. Append the text "All Checks Green" to the bottom of your
status.txt file inside your home folder /home/learner, and then run cat on it to see both lines.Command Syntax Reference
| Command / Syntax | Description |
|---|---|
echo "All Checks Green" >> status.txt | Append text to status.txt |
Verification Objectives
These conditions will be automatically verified when you run commands inside the interactive terminal simulator:
- ○Use echo with >> append redirection
- ○First line is still "System Online"
- ○Second line has "All Checks Green"
- ○Verify the result using the "cat" command
Ready to complete Quest 18?
Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.