Quest 36Documenter
+250 XP
Multi-Line Input with Here-Docs (<<EOF)
Launch Interactive Terminal for This Quest→No installation required • Runs fully in browser
Concept & Overview
In automated scripts and cloud deployment routines (like Dockerfiles or cloud-init), opening an interactive text editor like nano is impossible. Instead, Bash uses Here-Documents (<
The syntax cat < tells the shell to capture all following lines into config.env until a line containing only the delimiter word EOF is reached.
Mission Instructions
Use a here-doc to create an environment configuration file! Run
NODE_ENV=production
PORT=3000
and terminate the here-doc with
cat < config.env , enter the lines:NODE_ENV=production
PORT=3000
and terminate the here-doc with
EOF on its own line.Command Syntax Reference
| Command / Syntax | Description |
|---|---|
cat <<EOF > config.env | Begin multi-line here-doc writing to config.env |
EOF | Delimiter word marking the end of here-doc input |
Verification Objectives
These conditions will be automatically verified when you run commands inside the interactive terminal simulator:
- ○Create config.env using a here-doc (<<EOF)
- ○Verify config.env contains NODE_ENV=production and PORT=3000
Ready to complete Quest 36?
Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.