A tiny UNIX shell written in C.
-
Parses commands from standard input and executes them until a command exit is evaluated;
-
Terminates the foreground process upon input of
^D; -
Change directory using
cdcommand, and display files/directories within a directory usinglsas well as all other built-in functions; -
Executes any number of processes in background (i.e., in parallel with the foreground process), including in particular, the ability to start another process while a process has been temporarily suspended;
-
Informs the user when the background process finishes or is waiting for an input from the terminal;
-
Informs the user what commands are executing in the background via the
jobscommand, includes information about the state of the process (i.e. suspended, background, waiting for input, etc.); -
Terminates involuntarily a background processes by through the
killcommand.
-
Open Terminal/Command Prompt.
-
Navigate to the
srcdirectory containing thekcsh.cfile (and theheaders.hfile). -
Compile the shell program using the following command:
gcc -g -lreadline kcsh.c -o kcsh -
Run the shell by typing
./kcsh(or simplykcshon Windows) and pressing enter.