109-02 NCU CE3002B Operating System
- VM: VMware Workstation 16 Player
- OS: ubuntu-20.04.2.0-desktop-amd64
- Make version: GNU Make 4.2.1 x86_64-pc-linux-gnu
-h: Print this help.
-d: Implement fork in default mode.
-c: Implement fork in child first mode.
-p: Implement fork in parent first mode.
Any Linux commands that can execute by exec system call, like execl, execlp, execle, execv, execvp, execvpe.
And include execute infinite pipe |
, redirect to file >
, >>
and also redirect from file <
.
cd is not in part of exec, therefore determine in other function.
exit can exit the shell
TAB, up arrow, down arrow, left arrow, right arrow can not work as in the normal terminal.
ls -a -l
ls -al | tail -7 | head -5 | grep git
ls -al > test.txt > test1.txt
grep git < test.txt < test2.txt
grep git < test.txt < test2.txt > test3.txt