A basic linux shell implementation in c++
Using POSIX library , implemented a basic shell in c++, which executes the standard linux commands.The key highlight is the execution of multiple pipes , and input and output redirection.
Direction to run the code:
bash executable.sh
Features covered:
- History command
- Multiple pipes
- input output redirection
- input output redirection along with single pipe.
- Multiple pipes with redirection to output.
- !(bang) operator [ !+, !-,!!]
- basic environment variables ($PWD,$HOME etc...)
- Basic linux commands (ls,clear,pwd,wc etc...)
- change directory (cd) command
- exit command