mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 11:30:13 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb9118d5b1 | ||
|
|
cfdf8730e8 | ||
|
|
6651071580 | ||
|
|
f30f6472f5 | ||
|
|
5ac3b3088d | ||
|
|
acc4d5acba | ||
|
|
1fb43b78e3 |
No files matched your search
@@ -159,7 +159,7 @@ stages:
|
||||
- ls-mkdir
|
||||
condition:
|
||||
pwd:
|
||||
- notes
|
||||
- ^/home/commander/notes$
|
||||
responses:
|
||||
- type: narrative
|
||||
content:
|
||||
|
||||
@@ -44,7 +44,7 @@ stages:
|
||||
- condition:
|
||||
not:
|
||||
pwd:
|
||||
- /home/commander
|
||||
- ^/home/commander$
|
||||
responses:
|
||||
- type: narrative
|
||||
content:
|
||||
@@ -78,11 +78,11 @@ stages:
|
||||
- ls
|
||||
condition:
|
||||
pwd:
|
||||
- /home/commander/folder1
|
||||
- ^/home/commander/folder1$
|
||||
exceptions:
|
||||
- condition:
|
||||
pwd:
|
||||
- /home/commander
|
||||
- ^/home/commander$
|
||||
responses:
|
||||
- type: narrative
|
||||
content:
|
||||
@@ -90,7 +90,7 @@ stages:
|
||||
- condition:
|
||||
not:
|
||||
pwd:
|
||||
- /home/commander
|
||||
- ^/home/commander$
|
||||
responses:
|
||||
- type: narrative
|
||||
content:
|
||||
@@ -113,7 +113,7 @@ stages:
|
||||
- cd-folder1
|
||||
condition:
|
||||
pwd:
|
||||
- /home/commander/folder1
|
||||
- ^/home/commander/folder1$
|
||||
command:
|
||||
- ls
|
||||
responses:
|
||||
@@ -131,7 +131,7 @@ stages:
|
||||
- ls-folder1
|
||||
condition:
|
||||
pwd:
|
||||
- /home/commander
|
||||
- ^/home/commander$
|
||||
responses:
|
||||
- content:
|
||||
- 你成功的回到上一層資料夾了。
|
||||
@@ -146,7 +146,7 @@ stages:
|
||||
- cd-..
|
||||
condition:
|
||||
pwd:
|
||||
- /home/commander/folder2
|
||||
- ^/home/commander/folder2$
|
||||
responses:
|
||||
- content:
|
||||
- 你成功的進入 `folder2` 資料夾了。
|
||||
@@ -160,7 +160,7 @@ stages:
|
||||
- cd-folder2
|
||||
condition:
|
||||
pwd:
|
||||
- /home/commander/folder2
|
||||
- ^/home/commander/folder2$
|
||||
command:
|
||||
- ls
|
||||
responses:
|
||||
@@ -176,7 +176,7 @@ stages:
|
||||
- ls-folder2
|
||||
condition:
|
||||
pwd:
|
||||
- /home/commander
|
||||
- ^/home/commander$
|
||||
responses:
|
||||
- content:
|
||||
- 你成功的回到原本的資料夾了。
|
||||
|
||||
@@ -44,19 +44,19 @@ stages:
|
||||
responses:
|
||||
- content:
|
||||
- 這個資料夾中有一個檔案和一個資料夾。
|
||||
- 現在你可以使用 `cat` 指令來查看 `file.txt` 的內容。
|
||||
- 現在你可以使用 `cat` 指令來查看 `file1.txt` 的內容。
|
||||
hints:
|
||||
- ➤ 請輸入 `cat file.txt` 來查看檔案的內容。
|
||||
- ➤ 請輸入 `cat file1.txt` 來查看檔案的內容。
|
||||
|
||||
- id: cat-file
|
||||
task: 查看 `file.txt` 的內容
|
||||
- id: cat-file1
|
||||
task: 查看 `file1.txt` 的內容
|
||||
requirements:
|
||||
- ls-~
|
||||
condition:
|
||||
pwd:
|
||||
- ^/home/commander$
|
||||
command:
|
||||
- ^cat file.txt$
|
||||
- ^cat file1.txt$
|
||||
responses:
|
||||
- content:
|
||||
- 你應該能看到檔案的內容了。
|
||||
|
||||
Reference in new issue
Block a user