From 6fddf5ee0c2b22654a746189539f8302187a6670 Mon Sep 17 00:00:00 2001 From: "Lin, Hung-Shin" Date: Wed, 22 Nov 2023 13:57:09 +0800 Subject: [PATCH] quest: add study commands to instruction --- quests/copy/game.yml | 4 +++- quests/create/game.yml | 5 ++++- quests/move/game.yml | 4 +++- quests/remove/game.yml | 5 ++++- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/quests/copy/game.yml b/quests/copy/game.yml index b3e6a94..9968af2 100644 --- a/quests/copy/game.yml +++ b/quests/copy/game.yml @@ -1,6 +1,8 @@ title: 複製檔案 instruction: | - 在這個關卡中,你將學習如何複製檔案。 + 在這個關卡中,你會學習到: + 1. 如何用 `cp` 指令複製檔案。 + 準備好就輸入 `echo start` 來開始吧! requirements: - create diff --git a/quests/create/game.yml b/quests/create/game.yml index 426b08f..782742e 100644 --- a/quests/create/game.yml +++ b/quests/create/game.yml @@ -1,6 +1,9 @@ title: 建立檔案與資料夾 instruction: | - 在這個關卡中,你將學習如何建立檔案與資料夾。 + 在這個關卡中,你會學習到: + 1. 如何使用 `touch` 建立檔案 + 2. 如何使用 `mkdir` 建立資料夾 + 準備好就輸入 `echo start` 開始吧! stages: - id: start diff --git a/quests/move/game.yml b/quests/move/game.yml index 3f53710..916af35 100644 --- a/quests/move/game.yml +++ b/quests/move/game.yml @@ -1,6 +1,8 @@ title: 移動檔案 instruction: | - 在這個關卡中,你會學習如何移動檔案與資料夾。準備好就輸入 `echo start` 來開始吧! + 在這個關卡中,你會學到: + 1. 如何用 `mv` 移動檔案與資料夾 + 準備好就輸入 `echo start` 來開始吧! requirements: - create diff --git a/quests/remove/game.yml b/quests/remove/game.yml index 5542487..855b52f 100644 --- a/quests/remove/game.yml +++ b/quests/remove/game.yml @@ -1,6 +1,9 @@ title: 刪除檔案與資料夾 instruction: | - 在這個關卡中,你會學到如何用 `rm` 與 `rmdir` 指令刪除檔案與資料夾。 + 在這個關卡中,你會學到: + 1. 用 `rm` 指令刪除檔案 + 2. 用 `rmdir` 與資料夾。 + 3. 用 `rm -r` 刪除資料夾與它的所有檔案。 現在資料夾裡有一些檔案與資料夾,請你使用 `ls` 跟 `cat` 來查看它們的內容。 準備好就輸入 `echo start` 開始吧!