From 63ed4c098cfc5632ab3394914590293ac5fb0ee1 Mon Sep 17 00:00:00 2001 From: "Chen, Tai-Lin" Date: Thu, 23 Nov 2023 21:21:38 +0800 Subject: [PATCH] all quests update --- quests/copy/game.yml | 24 ++++++++++++------------ quests/create/game.yml | 18 +++++++++--------- quests/explore/game.yml | 2 +- quests/move/game.yml | 20 ++++++++++---------- quests/remove/game.yml | 26 +++++++++++++------------- 5 files changed, 45 insertions(+), 45 deletions(-) diff --git a/quests/copy/game.yml b/quests/copy/game.yml index 11d4f3c..15eda11 100644 --- a/quests/copy/game.yml +++ b/quests/copy/game.yml @@ -35,9 +35,9 @@ stages: - 現在資料夾裡有一個 `hello.txt` 跟一個 `world.txt`,請使用 `ls` 與 `cat` 來查看它們的內容。 - 看完之後,使用 `echo continue` 來繼續吧! hints: - - 使用 `ls` 來查看資料夾內的檔案 - - 使用 `cat hello.txt` 以及 `cat world.txt` 來查看檔案內容 - - 如果終端機卡在某個指令無法輸入,請按下 `Ctrl + C` 來取消該指令 + - ➤ 使用 `ls` 來查看資料夾內的檔案 + - ➤ 使用 `cat hello.txt` 以及 `cat world.txt` 來查看檔案內容 + - ➤ 如果終端機卡在某個指令無法輸入,請按下 `Ctrl + C` 來取消該指令 - id: cat-hello task: 查看 `hello.txt` 的內容 @@ -100,7 +100,7 @@ stages: - 我們可以用 `cp [來源檔案] [目的檔案]` 的方式來複製檔案。 - 請你使用 `cp` 來複製 `hello.txt` 到 `hello2.txt`。 hints: - - 使用 `cp hello.txt hello2.txt` 來複製 `hello.txt` 到 `hello2.txt` + - ➤ 使用 `cp hello.txt hello2.txt` 來複製 `hello.txt` 到 `hello2.txt` - id: cp-hello task: 複製 `hello.txt` 到 `hello2.txt` @@ -118,7 +118,7 @@ stages: - 你成功複製 `hello.txt` 到 `hello2.txt` 了! - 我們打開來確認一下 `hello2.txt` 的內容吧! hints: - - 使用 `cat hello2.txt` 來查看 `hello2.txt` 的內容 + - ➤ 使用 `cat hello2.txt` 來查看 `hello2.txt` 的內容 - id: cat-hello2 requirements: @@ -136,7 +136,7 @@ stages: - 正如我們所見,`hello2.txt` 的內容跟 `hello.txt` 一模一樣。 - 那我們再來試試看複製 `world.txt` 到 `world2.txt` 吧! hints: - - 使用 `cp world.txt world2.txt` 來複製 `world.txt` 到 `world2.txt` + - ➤ 使用 `cp world.txt world2.txt` 來複製 `world.txt` 到 `world2.txt` - id: cp-world requirements: @@ -154,7 +154,7 @@ stages: - 你成功複製 `world.txt` 到 `world2.txt` 了! - 我們打開來確認一下 `world2.txt` 的內容吧! hints: - - 使用 `cat world2.txt` 來查看 `world2.txt` 的內容 + - ➤ 使用 `cat world2.txt` 來查看 `world2.txt` 的內容 - id: cat-world2 requirements: @@ -179,8 +179,8 @@ stages: - 選項擺放的位置沒有特別的限制,通常會跟在指令的後面,置於檔案名稱的前面。 - 請你使用 `cp -r notes notes2` 來複製 `notes` 資料夾到 `notes2`。 hints: - - 使用 `cp -r notes notes2` 來複製 `notes` 資料夾到 `notes2` - - 記得要加上 `-r` 的選項來複製所有檔案 + - ➤ 使用 `cp -r notes notes2` 來複製 `notes` 資料夾到 `notes2` + - ➤ 記得要加上 `-r` 的選項來複製所有檔案 - id: cp-notes requirements: @@ -200,7 +200,7 @@ stages: - 你成功複製 `notes` 資料夾到 `notes2` 了! - 我們打開來確認一下 `notes2` 資料夾的內容吧! hints: - - 使用 `ls notes2` 來查看 `notes2` 資料夾的內容 + - ➤ 使用 `ls notes2` 來查看 `notes2` 資料夾的內容 exceptions: - condition: error: @@ -227,7 +227,7 @@ stages: - 我們可以看到,整個 `notes` 資料夾包含裡面的檔案,都被複製到 `notes2` 資料夾了。 - 那麼最後我們要來試試看,如果複製一個檔案到已經存在的檔案會發生什麼事。 hints: - - 使用 `cp hello.txt world.txt` 來複製 `hello.txt` 到 `world.txt` + - ➤ 使用 `cp hello.txt world.txt` 來複製 `hello.txt` 到 `world.txt` - id: cp-overwrite requirements: @@ -242,7 +242,7 @@ stages: - 你成功複製 `hello.txt` 到 `world.txt` 了! - 我們打開來確認一下 `world.txt` 的內容吧! hints: - - 使用 `cat world.txt` + - ➤ 使用 `cat world.txt` - id: END requirements: diff --git a/quests/create/game.yml b/quests/create/game.yml index e958770..5842342 100644 --- a/quests/create/game.yml +++ b/quests/create/game.yml @@ -22,7 +22,7 @@ stages: - '`touch` 指令可以建立一個檔案。' - 接下來,請你試著在終端機上建立一個檔案,檔名為 `hello.txt`。 hints: - - 輸入 `touch hello.txt` 來建立一個檔案 + - ➤ 輸入 `touch hello.txt` 來建立一個檔案 - id: touch task: 使用 `touch` 指令來建立一個檔案 @@ -39,7 +39,7 @@ stages: - 這表示 `touch` 指令已經成功建立了一個檔案。 - 接下來,請你用之前學過的 `ls` 指令來查看目前所在資料夾中有哪些檔案。 hints: - - 輸入 `ls` 指令來查看目前所在資料夾中有哪些檔案 + - ➤ 輸入 `ls` 指令來查看目前所在資料夾中有哪些檔案 - id: ls-touch task: 使用 `ls` 指令來查看新建立的檔案 @@ -57,7 +57,7 @@ stages: - 我們來看看 `hello.txt` 檔案的內容吧! - 我們可以使用之前學過的 `cat` 指令來查看檔案內容。 hints: - - 輸入 `cat hello.txt` 來查看 `hello.txt` 檔案的內容 + - ➤ 輸入 `cat hello.txt` 來查看 `hello.txt` 檔案的內容 - id: cat condition: @@ -72,7 +72,7 @@ stages: - 再來試試建立其他的檔案吧! - 請你試著在終端機上建立另一個檔案,檔名為 `world.txt`。 hints: - - 輸入 `touch world.txt` 來建立一個檔案 + - ➤ 輸入 `touch world.txt` 來建立一個檔案 - id: touch-2 task: 使用 `touch` 指令來建立另一個檔案 `world.txt` @@ -88,7 +88,7 @@ stages: - 非常好,你已經成功建立了第二個檔案。 - 接下來,請你用之前學過的 `ls` 指令來查看剛剛建立的兩個檔案。 hints: - - 輸入 `ls` 指令來查看目前所在資料夾中有哪些檔案 + - ➤ 輸入 `ls` 指令來查看目前所在資料夾中有哪些檔案 - id: ls-2 task: 使用 `ls` 指令來查看剛剛建立的兩個檔案 @@ -109,7 +109,7 @@ stages: - 使用方式是 `mkdir [資料夾名稱]`。 - 請你試著在終端機上建立一個資料夾,名稱為 `notes`。 hints: - - 輸入 `mkdir notes` 來建立一個資料夾 + - ➤ 輸入 `mkdir notes` 來建立一個資料夾 - id: mkdir task: 使用 `mkdir` 指令建立 `notes` 資料夾 @@ -142,8 +142,8 @@ stages: - 首先,我們要先進入 `notes` 資料夾。 - 還記得之前的 `cd` 指令嗎?請你試著使用 `cd` 指令來進入 `notes` 資料夾。 hints: - - 輸入 `cd notes` 來進入 `notes` 資料夾 - - 可以在輸入到 `cd n` 時按下 `Tab` 鍵來自動補齊資料夾名稱 + - ➤ 輸入 `cd notes` 來進入 `notes` 資料夾 + - ➤ 可以在輸入到 `cd n` 時按下 `Tab` 鍵來自動補齊資料夾名稱 - id: cd-notes task: 移動到 `notes` 資料夾 @@ -158,7 +158,7 @@ stages: - 你已經成功進入了 `notes` 資料夾。 - 接下來,請你試著在 `notes` 資料夾裡建立一個檔案,檔名為 `note.txt`。 hints: - - 輸入 `touch note.txt` 來建立一個檔案 + - ➤ 輸入 `touch note.txt` 來建立一個檔案 - id: touch-note task: 在 `notes` 中建立 `note.txt` 檔案 diff --git a/quests/explore/game.yml b/quests/explore/game.yml index 9dba3cf..93e216a 100644 --- a/quests/explore/game.yml +++ b/quests/explore/game.yml @@ -123,7 +123,7 @@ stages: - 你可以使用 `cd ..` 回到上一層資料夾。 - 這裡的 `..` 代表的是上一層的資料夾。 hints: - - 輸入 `cd ..` 回到上一層資料夾 + - ➤ 輸入 `cd ..` 回到上一層資料夾 - id: cd-.. task: 回到上一層資料夾 diff --git a/quests/move/game.yml b/quests/move/game.yml index 80a0a1e..413bc35 100644 --- a/quests/move/game.yml +++ b/quests/move/game.yml @@ -22,9 +22,9 @@ stages: - 請先用 `ls` 與 `cat` 來查看它們的內容。 - 看完之後,使用 `echo continue` 來繼續吧! hints: - - 用 `ls`、`ls notes` 來查看資料夾內的檔案 - - 用 `cat hello.txt` 以及 `cat world.txt` 來查看檔案內容 - - 完成後輸入 `echo continue` 來繼續 + - ➤ 用 `ls`、`ls notes` 來查看資料夾內的檔案 + - ➤ 用 `cat hello.txt` 以及 `cat world.txt` 來查看檔案內容 + - ➤ 完成後輸入 `echo continue` 來繼續 - id: continue requirements: @@ -41,7 +41,7 @@ stages: - 使用方式為 `mv [來源] [目的地]`。 - 我們先來將 `hello.txt` 移動到 `notes` 資料夾中吧! hints: - - 使用 `mv hello.txt notes` 來將 `hello.txt` 移動到 `notes` 資料夾中 + - ➤ 使用 `mv hello.txt notes` 來將 `hello.txt` 移動到 `notes` 資料夾中 - id: mv-hello requirements: @@ -61,7 +61,7 @@ stages: - 你做得很好! - 我們用 `ls` 跟 `ls notes` 來查看一下資料夾內的檔案吧! hints: - - 使用 `ls`、`ls notes` 來查看資料夾內的檔案 + - ➤ 使用 `ls`、`ls notes` 來查看資料夾內的檔案 - id: ls-no-hello requirements: @@ -108,7 +108,7 @@ stages: - '只要將目的地改成新的檔案名稱就可以了。' - 現在我們要將 `world.txt` 更名為 `wow.txt`。 hints: - - 使用 `mv world.txt wow.txt` 來將 `world.txt` 更名為 `wow.txt` + - ➤ 使用 `mv world.txt wow.txt` 來將 `world.txt` 更名為 `wow.txt` - id: mv-world requirements: @@ -128,7 +128,7 @@ stages: - 你做得很好! - 我們用 `ls` 來確認一下資料夾內的檔案吧! hints: - - 使用 `ls` 來查看資料夾內的檔案 + - ➤ 使用 `ls` 來查看資料夾內的檔案 - id: ls-wow requirements: @@ -150,7 +150,7 @@ stages: - '`mv` 指令會自動將資料夾內的所有檔案一起移動' - 我們先來將 `notes` 資料夾改名叫作 `docs` 吧! hints: - - 使用 `mv notes docs` 來將 `notes` 資料夾改名叫作 `docs` + - ➤ 使用 `mv notes docs` 來將 `notes` 資料夾改名叫作 `docs` - id: mv-notes requirements: @@ -170,7 +170,7 @@ stages: - 你做得很好! - 我們用 `ls` 來確認一下資料夾內的檔案吧! hints: - - 使用 `ls` 來查看資料夾內的檔案 + - ➤ 使用 `ls` 來查看資料夾內的檔案 - id: ls-docs requirements: @@ -212,7 +212,7 @@ stages: content: - 你可以使用 `mv docs/hello.txt hi.txt` 來完成這個任務。 hints: - - 使用 `mv docs/hello.txt hi.txt` 來將 `docs/hello.txt` 移動到家目錄底下的 `hi.txt` + - ➤ 使用 `mv docs/hello.txt hi.txt` 來將 `docs/hello.txt` 移動到家目錄底下的 `hi.txt` responses: - type: narrative content: diff --git a/quests/remove/game.yml b/quests/remove/game.yml index a877e3c..d6532fc 100644 --- a/quests/remove/game.yml +++ b/quests/remove/game.yml @@ -26,7 +26,7 @@ stages: - '首先要來學習 `rm` 指令。`rm` 指令可以用來刪除檔案。使用方式是 `rm [檔案名稱]`。' - '現在請你使用 `rm` 指令刪除 `hello.txt`。' hints: - - 使用 `rm hello.txt` 來刪除 `hello.txt`。 + - ➤ 使用 `rm hello.txt` 來刪除 `hello.txt`。 - id: rm-hello requirements: @@ -58,9 +58,9 @@ stages: - '`rm` 也可以同時刪除多個檔案,只要把檔案名稱用空白隔開就可以了,也就是 `rm [檔案1] [檔案2] ...`。' - 現在請你使用 `rm` 刪除 `world.txt` 與 `wow.txt`。 hints: - - 使用 `rm world.txt wow.txt` 來刪除 `world.txt` 與 `wow.txt`。 - - 檔案名稱之間要用空白隔開。 - - 名稱的順序不重要。 + - ➤ 使用 `rm world.txt wow.txt` 來刪除 `world.txt` 與 `wow.txt`。 + - ➤ 檔案名稱之間要用空白隔開。 + - ➤ 名稱的順序不重要。 - id: rm-world-wow requirements: @@ -78,7 +78,7 @@ stages: - content: - '很好!我們一樣用 `ls` 指令確認一下資料夾內容。' hints: - - 使用 `ls` 來查看資料夾內容。 + - ➤ 使用 `ls` 來查看資料夾內容。 - id: ls-no-world-wow requirements: @@ -93,7 +93,7 @@ stages: - '現在我們來學習 `rmdir` 指令。`rmdir` 指令可以用來刪除資料夾。使用方式是 `rmdir [資料夾名稱]`。' - '現在請你使用 `rmdir` 指令刪除 `empty` 資料夾。' hints: - - 使用 `rmdir empty` 來刪除 `empty` 資料夾。 + - ➤ 使用 `rmdir empty` 來刪除 `empty` 資料夾。 - id: rm-empty requirements: @@ -121,7 +121,7 @@ stages: - '你會發現 `empty` 資料夾已經不見了。' - '現在請你試試看 `rmdir` 指令刪除 `notes` 資料夾。' hints: - - 使用 `rmdir notes` 來刪除 `notes` 資料夾 + - ➤ 使用 `rmdir notes` 來刪除 `notes` 資料夾 - id: rm-notes-failed requirements: @@ -142,8 +142,8 @@ stages: - 我們先來將 `notes` 資料夾的檔案刪除再來試一次。 - '現在請你使用 `rm` 指令刪除 `notes` 資料夾內的檔案。' hints: - - 使用 `rm notes/[檔案名稱]` 來刪除 `notes` 資料夾內的檔案。 - - 你可能需要使用 `ls notes` 來查看 `notes` 資料夾內有哪些檔案。 + - ➤ 使用 `rm notes/[檔案名稱]` 來刪除 `notes` 資料夾內的檔案。 + - ➤ 你可能需要使用 `ls notes` 來查看 `notes` 資料夾內有哪些檔案。 - id: rm-notes-content requirements: @@ -189,7 +189,7 @@ stages: - content: - '很好!現在我們再使用 `rmdir` 指令刪除 `notes` 資料夾。' hints: - - 使用 `rmdir notes` 來刪除 `notes` 資料夾。 + - ➤ 使用 `rmdir notes` 來刪除 `notes` 資料夾。 - id: rm-notes requirements: @@ -207,7 +207,7 @@ stages: - 接下來我們來刪除 `trash` 資料夾。 - 先使用 `ls` 指令查看一下 `trash` 資料夾內容。 hints: - - 使用 `ls trash` 來查看 `trash` 中的檔案。 + - ➤ 使用 `ls trash` 來查看 `trash` 中的檔案。 - id: ls-trash requirements: @@ -226,7 +226,7 @@ stages: - '`-r` 的意思是遞迴(recursive),也就是會把資料夾中的所有檔案都刪除。' - 我們來試試看吧! hints: - - 使用 `rm -r trash` 來刪除 `trash` 資料夾。 + - ➤ 使用 `rm -r trash` 來刪除 `trash` 資料夾。 - id: rm-trash requirements: @@ -242,7 +242,7 @@ stages: - content: - '很好!現在請你使用 `ls` 指令查看資料夾內容。' hints: - - 使用 `ls` 來查看資料夾內容。 + - ➤ 使用 `ls` 來查看資料夾內容。 - id: END requirements: