CST-315 project to create a unix/linux command line interpreter
- Download zip file of code
- Download gcc
- Make sure the following libaries are installed
- stdio.h
- string.h
- stdlib.h
- unistd.h
- sys/types.h
- sys/wait.h
- readline/readline.h
- readline/history.h
- dirent.h
- errno.h
- pthread.h
- alloca.h
- signal.h
- sched.h
- Open zip file and note the location of the .c file
- Open terminal or commandline equivalent and go to the .c file
- Run
gcc -pthread linuxshell.c -lreadline -o linuxshell - Run
./linuxshell
- exit
- cd
- ls
- rm
- pwd
- help
- page
- hello
- sproc