BM: Baca dalam Bahasa Melayu
World L1: The Shophouse
Make, copy, move: mkdir, cp, mv
You will learn: to build folders, copy files as a backup, and move or rename them.
Checked with Linux (Debian 13) on 1 Nov 2026
The problem
The promo draft lies loose on the floor. The only menu has no spare. If someone spills teh tarik on today.txt, the shop has no menu. What first?
Pick one answer.
Watch
You are you in /home/you/kedai. 6 things here. Services: cron running, ssh running, nginx running.
you@kedai:~/kedai$Folder ~/kedai
- boxes/ (folder)
drwxrwxr-x - counter/ (folder)
drwxrwxr-xorders.log - draft.txt (file)
-rw-r--r-- - kitchen/ (folder)
drwxrwxr-xrendang.txt sambal.txt - menu/ (folder)
drwxrwxr-xdrinks.txt today.txt - store/ (folder)
drwxrwxr-xstock.txt
+ 1 hidden (ls -a)
Services
cronrunningstarts at bootsshrunningstarts at bootnginxrunningstarts at boot
mkdir boxes builds a new room called boxes. The picture shows it at once. mkdir means “make directory”.
Predict
store has no 2026 room yet. You type mkdir store/2026/nov. What happens?
Pick one answer.
Try it
Build the November shelf, with any missing rooms: mkdir -p store/2026/nov.
You are you in /home/you/kedai. 5 things here. Services: cron running, ssh running, nginx running.
you@kedai:~/kedai$Folder ~/kedai
- counter/ (folder)
drwxrwxr-xorders.log - draft.txt (file)
-rw-r--r-- - kitchen/ (folder)
drwxrwxr-xrendang.txt sambal.txt - menu/ (folder)
drwxrwxr-xdrinks.txt today.txt - store/ (folder)
drwxrwxr-xstock.txt
+ 1 hidden (ls -a)
Services
cronrunningstarts at bootsshrunningstarts at bootnginxrunningstarts at boot
Hint
-p means “make the parents too”.Check
cp makes a copy: the first file stays. mv moves or renames: nothing stays behind. Which one?
Drag a card into a box. Or tap the card, then tap the box.
Try it
Back up the menu as menu/today.bak. Then rename draft.txt to promo.txt.
You are you in /home/you/kedai. 5 things here. Services: cron running, ssh running, nginx running.
you@kedai:~/kedai$Folder ~/kedai
- counter/ (folder)
drwxrwxr-xorders.log - draft.txt (file)
-rw-r--r-- - kitchen/ (folder)
drwxrwxr-xrendang.txt sambal.txt - menu/ (folder)
drwxrwxr-xdrinks.txt today.txt - store/ (folder)
drwxrwxr-xstock.txt
+ 1 hidden (ls -a)
Services
cronrunningstarts at bootsshrunningstarts at bootnginxrunningstarts at boot
Hint
The order is always: from, then to.Check
You type cp kitchen kitchen-copy. The server says cp: -r not specified; omitting directory 'kitchen'. What now?
Pick one answer.
You did it!
You can now build folders, back up files, and move them.
Go deeper (optional)
Careful: cp and mv replace a file with the same name without asking. cp -i and mv -i ask first on a real machine. touch notes.txt makes an empty file.
Real rep (optional), in a practice folder on your own machine:
Real mission
mkdir -p practice/menutouch practice/menu/today.txtcp practice/menu/today.txt practice/menu/today.bakls practice/menu
0 of 4 steps done · Your ticks are saved.
Bahasa Melayu
Draf promosi bersepah di lantai. Menu satu-satunya tiada salinan. Kalau teh tarik tertumpah atas today.txt, kedai hilang menu. Apa dulu?
mkdir boxes bina bilik baru bernama boxes. Gambar terus tunjuk bilik itu. mkdir maksudnya “make directory” (buat folder).
store belum ada bilik 2026. Anda taip mkdir store/2026/nov. Apa jadi?
Bina rak November, termasuk bilik yang belum ada: mkdir -p store/2026/nov.
-p maksudnya “buat induknya sekali”.cp buat salinan: fail asal kekal. mv alih atau tukar nama: tiada yang tinggal. Yang mana satu?
Sandar menu sebagai menu/today.bak. Kemudian tukar nama draft.txt kepada promo.txt.
Anda taip cp kitchen kitchen-copy. Server kata cp: -r not specified; omitting directory 'kitchen'. Sekarang apa?
Kini anda boleh bina folder, sandar fail, dan alihkannya.
You finished this before. Practice is always welcome!
Official docs: mkdir (Debian 13 man page) · cp (Debian 13 man page) · mv (Debian 13 man page) · touch (Debian 13 man page)
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?