|
|
@ -42,38 +42,38 @@ Run yeeshell. |
|
|
|
|
|
|
|
(2) `ls -a -l` |
|
|
|
|
|
|
|
<img src="E:\undergraduate\sophomore\SEM2\OS\experiments\1 Shell\OS2021_Project1.Shell\lab_report\test_case_img\ls.png" alt="ls" style="zoom:76%;" /> |
|
|
|
<img src="http://gitea.shuishan.net.cn/10195501441/OS2021_Project1.Shell/raw/branch/master/lab_report/test_case_img/ls.png" alt="ls" style="zoom:76%;" /> |
|
|
|
|
|
|
|
(3) `ls -a -l > result.txt` |
|
|
|
|
|
|
|
<img src="E:\undergraduate\sophomore\SEM2\OS\experiments\1 Shell\OS2021_Project1.Shell\lab_report\test_case_img\redirect_out.png" alt="redirect_out" style="zoom:76%;" /> |
|
|
|
<img src="http://gitea.shuishan.net.cn/10195501441/OS2021_Project1.Shell/raw/branch/master/lab_report/test_case_img/redirect_out.png" alt="redirect_out" style="zoom:76%;" /> |
|
|
|
|
|
|
|
(4) `vi result.txt` |
|
|
|
|
|
|
|
<img src="E:\undergraduate\sophomore\SEM2\OS\experiments\1 Shell\OS2021_Project1.Shell\lab_report\test_case_img\vi.png" alt="vi" style="zoom:76%;" /> |
|
|
|
<img src="http://gitea.shuishan.net.cn/10195501441/OS2021_Project1.Shell/raw/branch/master/lab_report/test_case_img/vi.png" alt="vi" style="zoom:76%;" /> |
|
|
|
|
|
|
|
(5) `grep a < result.txt` |
|
|
|
|
|
|
|
<img src="E:\undergraduate\sophomore\SEM2\OS\experiments\1 Shell\OS2021_Project1.Shell\lab_report\test_case_img\redirect_in.png" alt="redirect_in" style="zoom:76%;" /> |
|
|
|
<img src="http://gitea.shuishan.net.cn/10195501441/OS2021_Project1.Shell/raw/branch/master/lab_report/test_case_img/redirect_in.png" alt="redirect_in" style="zoom:76%;" /> |
|
|
|
|
|
|
|
(6) `ls -a -l | grep a ` |
|
|
|
|
|
|
|
<img src="E:\undergraduate\sophomore\SEM2\OS\experiments\1 Shell\OS2021_Project1.Shell\lab_report\test_case_img\pipe.png" alt="pipe" style="zoom:76%;" /> |
|
|
|
<img src="http://gitea.shuishan.net.cn/10195501441/OS2021_Project1.Shell/raw/branch/master/lab_report/test_case_img/pipe.png" alt="pipe" style="zoom:76%;" /> |
|
|
|
|
|
|
|
(7) `vi result.txt` |
|
|
|
(7) `vi result.txt &` |
|
|
|
|
|
|
|
This command can not be executed in the **MINIX3** environment. It prints the following error information. |
|
|
|
|
|
|
|
<img src="E:\undergraduate\sophomore\SEM2\OS\experiments\1 Shell\OS2021_Project1.Shell\lab_report\test_case_img\vi_bg.png" alt="vi_bg" style="zoom:76%;" /> |
|
|
|
<img src="http://gitea.shuishan.net.cn/10195501441/OS2021_Project1.Shell/raw/branch/master/lab_report/test_case_img/vi_bg.png" alt="vi_bg" style="zoom:76%;" /> |
|
|
|
|
|
|
|
(8) `mytop ` |
|
|
|
|
|
|
|
<img src="E:\undergraduate\sophomore\SEM2\OS\experiments\1 Shell\OS2021_Project1.Shell\lab_report\test_case_img\mytop.png" alt="mytop" style="zoom:76%;" /> |
|
|
|
<img src="http://gitea.shuishan.net.cn/10195501441/OS2021_Project1.Shell/raw/branch/master/lab_report/test_case_img/mytop.png" alt="mytop" style="zoom:76%;" /> |
|
|
|
|
|
|
|
(9) `history n` |
|
|
|
|
|
|
|
<img src="E:\undergraduate\sophomore\SEM2\OS\experiments\1 Shell\OS2021_Project1.Shell\lab_report\test_case_img\history.png" alt="history" style="zoom:76%;" /> |
|
|
|
<img src="http://gitea.shuishan.net.cn/10195501441/OS2021_Project1.Shell/raw/branch/master/lab_report/test_case_img/history.png" alt="history" style="zoom:76%;" /> |
|
|
|
|
|
|
|
(10) `exit` |
|
|
|
|
|
|
|
<img src="E:\undergraduate\sophomore\SEM2\OS\experiments\1 Shell\OS2021_Project1.Shell\lab_report\test_case_img\exit.png" alt="exit" style="zoom:76%;" /> |
|
|
|
<img src="http://gitea.shuishan.net.cn/10195501441/OS2021_Project1.Shell/raw/branch/master/lab_report/test_case_img/exit.png" alt="exit" style="zoom:76%;" /> |