World map

 

BM: Baca dalam Bahasa Melayu

World L1: The Shophouse · Boss challenge

Tidy the messy kitchen

You will learn: to tidy a real messy folder on your own: find, move and delete safely.

Checked with Linux (Debian 13) on 1 Nov 2026

The problem

Boss: the day cook left ~/kitchen in a mess. Recipes on the floor, temp files everywhere, and the supplier note is lost. Dinner rush in 10 minutes. What comes first?

Pick one answer.

Try it

Job 1: look with ls -a. Then make a recipes room and move the three .txt recipes into it. Leave oven.log alone.

You are you in /home/you/kitchen. 8 things here. Services: cron running, ssh running, nginx running.

You are hereyou@kedai:~/kitchen$

Folder ~/kitchen

  • kuih.txt (file)-rw-r--r--
  • old/ (folder)drwxrwxr-xbox menu-2025.md
  • oven.log (file)-rw-r--r--
  • rendang.txt (file)-rw-r--r--
  • sambal.txt (file)-rw-r--r--
  • tmp1.tmp (file)-rw-r--r--
  • tmp2.tmp (file)-rw-r--r--
  • tmp3.tmp (file)-rw-r--r--

Services

  • cronrunningstarts at boot
  • sshrunningstarts at boot
  • nginxrunningstarts at boot

Check

Why mv *.txt recipes/ and not mv * recipes/?

Pick one answer.

Try it

Job 2: three empty .tmp files clutter the floor. Check them first, then delete only those.

You are you in /home/you/kitchen. 6 things here. Services: cron running, ssh running, nginx running.

You are hereyou@kedai:~/kitchen$

Folder ~/kitchen

  • old/ (folder)drwxrwxr-xbox menu-2025.md
  • oven.log (file)-rw-r--r--
  • recipes/ (folder)drwxrwxr-xkuih.txt rendang.txt sambal.txt
  • tmp1.tmp (file)-rw-r--r--
  • tmp2.tmp (file)-rw-r--r--
  • tmp3.tmp (file)-rw-r--r--

Services

  • cronrunningstarts at boot
  • sshrunningstarts at boot
  • nginxrunningstarts at boot

Check

The night cook suggests these. Safe here, or risky?

Swipe right for good, left for needs work. Or use the buttons.

1 / 4ls *.tmp, then rm *.tmp
ls *.tmp, then rm *.tmp

Try it

Job 3: the supplier note is lost somewhere in old. Find it. Then save only the Pak Ali line into todo.txt.

You are you in /home/you/kitchen. 3 things here. Services: cron running, ssh running, nginx running.

You are hereyou@kedai:~/kitchen$

Folder ~/kitchen

  • old/ (folder)drwxrwxr-xbox menu-2025.md
  • oven.log (file)-rw-r--r--
  • recipes/ (folder)drwxrwxr-xkuih.txt rendang.txt sambal.txt

Services

  • cronrunningstarts at boot
  • sshrunningstarts at boot
  • nginxrunningstarts at boot

Check

Write the tidy-up routine for the next cook. Put it in order.

First step at the top. Put these in order. Use the arrows, or drag.

  • Check: ls one last time
  • Group: mkdir, then mv with a pattern
  • Search: grep for what you need
  • Look: ls -a and find
  • Clean: ls the pattern, then rm it

You did it!

You can now tidy a messy folder on your own, safely.

Go deeper (optional)

The tools you used: ls -a, mkdir, mv with *, ls before rm, find -name, grep … >. Every one comes back in World L2.

Real rep (optional): build your own mess in a practice folder, then tidy it.

Real mission

  1. mkdir -p mess && cd mess && touch a.txt b.txt c.tmp d.tmp
  2. mkdir notes && mv *.txt notes/
  3. ls *.tmp
  4. rm *.tmp
  5. ls -R

0 of 5 steps done · Your ticks are saved.