the goal is to understand how a shell works and know some of the basic system calls.
- Build: using "clang shell.c -o shell" to compile
- Run: "./shell"
- Features: my program implements all the requirements in the assignment's details from 1~7 and the 'cd' command.
- Notice: pipe only support single pipe. It cannot support multiple pipes or a combination of pipes and redirection in one command.
- Testing:
- You can see '>> ' if my shell is running, type any commands you want. Here are some examples:
lsclearls -lcd /rootcd ..ls -l &ls -l > foosort < fools -l | morepoweroff