41 lines
957 B
Markdown
41 lines
957 B
Markdown
---
|
|
type: challenge
|
|
title: "The Maker"
|
|
xp: 50
|
|
duration: 25
|
|
difficulty: 2
|
|
---
|
|
|
|
# The Maker
|
|
|
|
> **[INCOMING — Mission Control, Earth]**
|
|
>
|
|
> Cadet, you've walked the field. Now build something.
|
|
>
|
|
> When your script runs, a stale file `cargo-old.txt` is sitting in
|
|
> your working directory. Build a cargo bay with three rooms — `food/`,
|
|
> `water/`, `tools/` — each holding an empty `manifest.txt`. Then
|
|
> delete the stale file.
|
|
>
|
|
> Three commands:
|
|
>
|
|
> - `mkdir` — make a directory (use `-p` to make nested ones at once)
|
|
> - `touch` — create an empty file
|
|
> - `rm` — delete (be careful — there is no trash)
|
|
>
|
|
> [END TRANSMISSION]
|
|
|
|
## Your Task
|
|
|
|
In `starter/starter.sh`, write the commands to:
|
|
|
|
1. Create `cargo/food/`, `cargo/water/`, `cargo/tools/`
|
|
2. Create an empty `manifest.txt` in each room
|
|
3. Remove `cargo-old.txt`
|
|
|
|
## Objectives
|
|
|
|
- All three room directories exist
|
|
- Each contains an empty `manifest.txt`
|
|
- `cargo-old.txt` no longer exists
|