A simple shell implemented in C.
A simple interactive shell program that prompts the user for a command, parse the command, and then executes it with a child process.
Before you continue, make sure you have me the following requirements:
- An IDE such as Visual Studio Code (If you're on Windows)
- Command Prompt/Terminal
- UNIX OS
- gcc compiler
Makefile
is a file containing shell commands. When the user typesmake
in the terminal, all the commands in the makefile will be executed.minishell.h
is a header file that identifies dependenciesshell.c
is the source code file
Run git clone https://github.com/tandras92/os-unix-program.git
or download the application.
- cd
<directoryname>
- ls
- cat
<filename>
- exit
- help
In the terminal, cd to the directory that contains the program and run the below commands.
Command | Description |
---|---|
make | compiles the program |
make run | runs the program |
make clean | removes the shell file |