Organize the Chaos
Use cp, mv, rm, mkdir to organize a messy directory left by the previous admin.
A beginner Linux challenge worth 3 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: The previous sysadmin left the server in a mess. /tmp/messy/ has files scattered everywhere with no structure.
Your tasks:
- Create the directory structure:
- /tmp/organized/images/
- /tmp/organized/logs/
- /tmp/organized/configs/
- Move all .jpg and .png files → /tmp/organized/images/
- Move all .log files → /tmp/organized/logs/
- Move all .conf files → /tmp/organized/configs/
- Delete all .tmp files from /tmp/messy/
- Create an empty marker file: /tmp/organized/.gitkeep
Commands to learn: mkdir -p, mv, cp, rm, touch
Run check when done.