This custom shell only works in Linux System
It runs Linux system call such as execvp(), fork(), etc.
To execute this code in other Operation System such as Windows, Mac OS, you need to change OS dependent codes listed above.
Implementation is based on the book, Operation System Concepts Nineth Edition.
Using gcc to compile the code
codes are written in c
- gcc -o [compile_name] [source_code]
- Run with ./[compile_name]
- cd
- other commands supported by execvp
Custom Commands
- history : Shows commands history up to HISTORY_SIZE
- ! n : Execute nth history commands
- !! : Execute last commands executed
- To investigate flow of the codes, you set constant variable at line 15, DEBUG_MODE to 1 and run, default val : 0
- Pipe instruction