Simple Linux shell written in C.
- Executes built-in commands:
- cd
- help
- exit
- pwd
- history
- ! (previous command)
- !n (nth previous command)
- Executes external commands by forking child process.
- C
- Linux Ubuntu
Compile shell.c from Linux terminal
$ gcc -o shell shell.c
Execute the program
$ ./shell
You are now in the shell
>> help
>> pwd
>> [...]
>> exit
Laura Kocubinski laurakoco
- Boston University MET Master of Science Computer Science Program
- MET CS 575 Operating Systems
- https://brennan.io/2015/01/16/write-a-shell-in-c/