mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
quest: fix checkpoints bug
This commit is contained in:
1 parent
7dcac306f9
commit
b64d707d16
6 files changed
+24
-25
No files matched your search
@@ -22,7 +22,7 @@ stages:
|
|||||||
因此不會告訴你要輸入什麼指令。
|
因此不會告訴你要輸入什麼指令。
|
||||||
請思考並應用正確的指令來完成任務。
|
請思考並應用正確的指令來完成任務。
|
||||||
|
|
||||||
如果理解了,請讓終端機輸出 `next` 來繼續。
|
現在,請讓終端機輸出 `next` 來繼續。
|
||||||
|
|
||||||
- id: next
|
- id: next
|
||||||
task: 讓終端機輸出 `next`
|
task: 讓終端機輸出 `next`
|
||||||
@@ -102,7 +102,7 @@ stages:
|
|||||||
command:
|
command:
|
||||||
- ^ls
|
- ^ls
|
||||||
output:
|
output:
|
||||||
- ^file1$
|
- file1.txt
|
||||||
responses:
|
responses:
|
||||||
- type: narrative
|
- type: narrative
|
||||||
content: |
|
content: |
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ instruction: |
|
|||||||
4. 用 `tab` 鍵來自動補全
|
4. 用 `tab` 鍵來自動補全
|
||||||
5. 之前測驗包含的內容
|
5. 之前測驗包含的內容
|
||||||
|
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
- create
|
- create
|
||||||
|
|
||||||
@@ -24,7 +23,7 @@ stages:
|
|||||||
因此不會告訴你要輸入什麼指令。
|
因此不會告訴你要輸入什麼指令。
|
||||||
請思考並應用正確的指令來完成任務。
|
請思考並應用正確的指令來完成任務。
|
||||||
|
|
||||||
如果理解了,請讓終端機輸出 `next` 來繼續。
|
現在,請讓終端機輸出 `next` 來繼續。
|
||||||
|
|
||||||
- id: next
|
- id: next
|
||||||
task: 讓終端機輸出 `next`
|
task: 讓終端機輸出 `next`
|
||||||
@@ -52,7 +51,7 @@ stages:
|
|||||||
content: |
|
content: |
|
||||||
請查看 `hello.txt` 檔案的內容。
|
請查看 `hello.txt` 檔案的內容。
|
||||||
|
|
||||||
- id: cat-hello.txt
|
- id: cat-hello
|
||||||
task: 查看 `hello.txt` 檔案內容
|
task: 查看 `hello.txt` 檔案內容
|
||||||
requirements:
|
requirements:
|
||||||
- ls-~
|
- ls-~
|
||||||
@@ -69,7 +68,7 @@ stages:
|
|||||||
- id: cat-long-filename
|
- id: cat-long-filename
|
||||||
task: 查看另一個檔案的內容
|
task: 查看另一個檔案的內容
|
||||||
requirements:
|
requirements:
|
||||||
- cat-hello.txt
|
- cat-hello
|
||||||
condition:
|
condition:
|
||||||
command:
|
command:
|
||||||
- ^cat pneumonoultramicroscopicsilicovolcanoconiosis.txt$
|
- ^cat pneumonoultramicroscopicsilicovolcanoconiosis.txt$
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
This is `hello.txt`
|
This is `hello.txt`.
|
||||||
@@ -1 +1 @@
|
|||||||
A name that has been invented for a lung disease caused by breathing in very small pieces of ash or dust.
|
A name that has been invented for a lung disease caused by breathing in very small pieces of ash or dust.
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
FROM linuxodyssey/quest-base
|
FROM linuxodyssey/quest-base
|
||||||
|
|
||||||
COPY home ${HOME}
|
COPY home ${HOME}
|
||||||
|
RUN chmod +W /folder
|
||||||
@@ -8,7 +8,6 @@ instruction: |
|
|||||||
5. 透過選項讓指令達成不同的功能,例如 `rm -r`
|
5. 透過選項讓指令達成不同的功能,例如 `rm -r`
|
||||||
6. 之前測驗包含的內容
|
6. 之前測驗包含的內容
|
||||||
|
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
- remove
|
- remove
|
||||||
|
|
||||||
@@ -25,7 +24,7 @@ stages:
|
|||||||
因此不會告訴你要輸入什麼指令。
|
因此不會告訴你要輸入什麼指令。
|
||||||
請思考並應用正確的指令來完成任務。
|
請思考並應用正確的指令來完成任務。
|
||||||
|
|
||||||
如果理解了,請讓終端機輸出 `next` 來繼續。
|
現在,請讓終端機輸出 `next` 來繼續。
|
||||||
|
|
||||||
- id: next
|
- id: next
|
||||||
task: 讓終端機輸出 `next`
|
task: 讓終端機輸出 `next`
|
||||||
@@ -53,7 +52,7 @@ stages:
|
|||||||
content: |
|
content: |
|
||||||
請複製 `folder` 資料夾中的檔案,並命名為 `world.txt`。
|
請複製 `folder` 資料夾中的檔案,並命名為 `world.txt`。
|
||||||
|
|
||||||
- id: cp-hello.txt-world.txt
|
- id: cp-hello-world
|
||||||
task: 複製 `folder` 中的檔案並命名為 `world.txt`
|
task: 複製 `folder` 中的檔案並命名為 `world.txt`
|
||||||
requirements:
|
requirements:
|
||||||
- ls-~
|
- ls-~
|
||||||
@@ -70,32 +69,32 @@ stages:
|
|||||||
content: |
|
content: |
|
||||||
請刪除 `hello.txt` 檔案。
|
請刪除 `hello.txt` 檔案。
|
||||||
|
|
||||||
- id: rm-hello.txt
|
- id: rm-hello
|
||||||
task: 刪除 `hello.txt`
|
task: 刪除 `hello.txt`
|
||||||
requirements:
|
requirements:
|
||||||
- cp-hello.txt-world.txt
|
- cp-hello-world
|
||||||
condition:
|
condition:
|
||||||
command:
|
command:
|
||||||
- ^rm \Shello.txt$
|
- ^rm \Shello.txt$
|
||||||
files:
|
files:
|
||||||
- path: /home/commander/folder/hello.txt
|
- path: /home/commander/folder/hello.txt
|
||||||
type: file
|
type: file
|
||||||
exsits: false
|
exists: false
|
||||||
responses:
|
responses:
|
||||||
- type: narrative
|
- type: narrative
|
||||||
content: |
|
content: |
|
||||||
現在請將 `world.txt` 移出 `folder` 資料夾。
|
現在請將 `world.txt` 移出 `folder` 資料夾。
|
||||||
(移到 `commander` 資料夾中)
|
(移到 `commander` 資料夾中)
|
||||||
|
|
||||||
- id: mv-world.txt-..
|
- id: mv-world-..
|
||||||
task: 將 `world.txt` 移出 `folder` 資料夾
|
task: 將 `world.txt` 移出 `folder` 資料夾
|
||||||
requirements:
|
requirements:
|
||||||
- rm-hello.txt
|
- rm-hello
|
||||||
condition:
|
condition:
|
||||||
files:
|
files:
|
||||||
- path: /home/commander/folder/world.txt
|
- path: /home/commander/folder/world.txt
|
||||||
type: file
|
type: file
|
||||||
exsits: false
|
exists: false
|
||||||
- path: /home/commander/world.txt
|
- path: /home/commander/world.txt
|
||||||
type: file
|
type: file
|
||||||
responses:
|
responses:
|
||||||
@@ -104,17 +103,17 @@ stages:
|
|||||||
將 `world.txt` 的名稱改回 `hello.txt` ,
|
將 `world.txt` 的名稱改回 `hello.txt` ,
|
||||||
並查看檔案的內容。
|
並查看檔案的內容。
|
||||||
|
|
||||||
- id: cat-hello.txt
|
- id: cat-hello
|
||||||
task: 將 `world.txt` 的名稱改回 `hello.txt` 後查看檔案內容
|
task: 將 `world.txt` 的名稱改回 `hello.txt` 後查看檔案內容
|
||||||
requirements:
|
requirements:
|
||||||
- mv-world.txt-..
|
- mv-world-..
|
||||||
condition:
|
condition:
|
||||||
output:
|
command:
|
||||||
- ^cat hello.txt$
|
- ^cat hello.txt$
|
||||||
files:
|
files:
|
||||||
- path: /home/commander/world.txt
|
- path: /home/commander/world.txt
|
||||||
type: file
|
type: file
|
||||||
exsits: false
|
exists: false
|
||||||
- path: /home/commander/hello.txt
|
- path: /home/commander/hello.txt
|
||||||
type: file
|
type: file
|
||||||
output:
|
output:
|
||||||
@@ -127,12 +126,12 @@ stages:
|
|||||||
- id: rmdir-folder
|
- id: rmdir-folder
|
||||||
task: 刪除 `folder` 資料夾
|
task: 刪除 `folder` 資料夾
|
||||||
requirements:
|
requirements:
|
||||||
- cat-hello.txt
|
- cat-hello
|
||||||
condition:
|
condition:
|
||||||
files:
|
files:
|
||||||
- path: /home/commander/folder
|
- path: /home/commander/folder
|
||||||
type: folder
|
type: folder
|
||||||
exsits: false
|
exists: false
|
||||||
responses:
|
responses:
|
||||||
- type: narrative
|
- type: narrative
|
||||||
content: |
|
content: |
|
||||||
@@ -146,7 +145,7 @@ stages:
|
|||||||
files:
|
files:
|
||||||
- path: /home/commander/trash_can
|
- path: /home/commander/trash_can
|
||||||
type: folder
|
type: folder
|
||||||
exsits: false
|
exists: false
|
||||||
responses:
|
responses:
|
||||||
- type: narrative
|
- type: narrative
|
||||||
content: |
|
content: |
|
||||||
|
|||||||
Reference in new issue
Block a user