mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
all quest modify
This commit is contained in:
1 parent
4f55dcd929
commit
057635eed6
10 files changed
+106
-91
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user