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@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 bootsshrunningstarts at bootnginxrunningstarts at boot
Hint
Every recipe ends in.txt.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@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 bootsshrunningstarts at bootnginxrunningstarts at boot
Hint
Use the same pattern twice: once withls, once with rm.Check
The night cook suggests these. Safe here, or risky?
Swipe right for good, left for needs work. Or use the buttons.
ls *.tmp, then rm *.tmpTry 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@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 bootsshrunningstarts at bootnginxrunningstarts at boot
Hint
find gives the path. grep … > todo.txt saves the line.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
mkdir -p mess && cd mess && touch a.txt b.txt c.tmp d.tmpmkdir notes && mv *.txt notes/ls *.tmprm *.tmpls -R
0 of 5 steps done · Your ticks are saved.
Bahasa Melayu
Boss: tukang masak siang tinggalkan ~/kitchen bersepah. Resepi di lantai, fail sementara merata, dan nota pembekal hilang. Waktu sibuk makan malam dalam 10 minit. Apa dulu?
Kerja 1: tengok dengan ls -a. Kemudian buat bilik recipes dan alih tiga resepi .txt ke dalamnya. Biarkan oven.log.
.txt.Kenapa mv *.txt recipes/ dan bukan mv * recipes/?
Kerja 2: tiga fail .tmp kosong bersepah di lantai. Semak dulu, kemudian padam yang itu sahaja.
ls, sekali dengan rm.Tukang masak malam cadangkan ini. Selamat di sini, atau berisiko?
Kerja 3: nota pembekal hilang di dalam old. Cari ia. Kemudian simpan baris Pak Ali sahaja ke dalam todo.txt.
find beri path. grep … > todo.txt simpan baris itu.Tulis rutin kemas untuk tukang masak seterusnya. Susun ikut urutan.
Kini anda boleh kemaskan folder bersepah sendiri, dengan selamat.
You finished this before. Practice is always welcome!
Official docs: mv (Debian 13 man page) · rm (Debian 13 man page) · find (Debian 13 man page) · grep (Debian 13 man page) · Bash manual: Filename Expansion
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?