This project is a simple custom shell implemented in C.
- Basic command execution (e.g. ./executable arg1 arg2)
- Custom built-in commands (e.g.,
cd
,exit
,ls
,cat
,echo
)
To compile and run the custom shell, follow these steps:
- Clone the repository:
git clone https://github.com/ismaeelbashir03/BASH_ir_shell.git
- Navigate to the project directory:
cd BASH_ir_SHELL
- Compile the source code using make:
make
- Run the shell:
./output/BASH_ir
Once the shell is running, you can use it to execute commands just like a regular shell. Here are some examples:
- Running a command:
ls -l
- Using built-in commands:
cd /path/to/directory
- Exiting the shell:
exit
- Displaying the help message:
help
- Running a script (sample script provided in the
sample_script
directory):./sample_script/gof