World map

 

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 are hereyou@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 boot
  • sshrunningstarts at boot
  • nginxrunningstarts 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 are hereyou@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 boot
  • sshrunningstarts at boot
  • nginxrunningstarts at boot

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 are hereyou@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 boot
      • sshrunningstarts at boot
      • nginxrunningstarts at boot

      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

      1. mkdir -p practice/menu
      2. touch practice/menu/today.txt
      3. cp practice/menu/today.txt practice/menu/today.bak
      4. ls practice/menu

      0 of 4 steps done · Your ticks are saved.