all quest modify

This commit is contained in:
Chen, Tai-Lin committed 2023-11-23 21:03:32 +08:00
1 parent 4f55dcd929
commit 057635eed6
10 files changed
+106 -91

No files matched your search

+9 -8
View File
@@ -1,10 +1,11 @@
title: 刪除檔案與資料夾
instruction: |
在這個關卡中,你會學到:
在這個關卡中,你將會學到:
1. 用 `rm` 指令刪除檔案
2. 用 `rmdir` 與資料夾。
3. 用 `rm -r` 刪除資料夾與它的所有檔案。
2. 用 `rmdir` 與資料夾
3. 用 `rm -r` 刪除資料夾與它的所有檔案
現在資料夾裡有一些檔案與資料夾,請你使用 `ls` 跟 `cat` 來查看它們的內容。
準備好就輸入 `echo start` 開始吧!
requirements:
@@ -157,11 +158,6 @@ stages:
exists: true
- path: notes/note.txt
exists: false
responses:
- content:
- '很好!現在我們再使用 `rmdir` 指令刪除 `notes` 資料夾。'
hints:
- 使用 `rmdir notes` 來刪除 `notes` 資料夾。
exceptions:
- condition:
command:
@@ -182,6 +178,11 @@ stages:
- content:
- 這個錯誤的意思是找不到檔案
- '請先用 `ls notes` 確認 `notes` 資料夾內有哪些檔案,再來試試看吧!'
responses:
- content:
- '很好!現在我們再使用 `rmdir` 指令刪除 `notes` 資料夾。'
hints:
- 使用 `rmdir notes` 來刪除 `notes` 資料夾。
- condition:
command: