This is a simple shell
program written in C. It provides a basic command-line interface that allows you to execute commands.
- Basic shell functionality
- Command execution
- Environment variable display
- You need a C compiler, such as
GCC
, to build the shell program.
-
Clone the repository:
git clone https://github.com/DevBasem/simple_shell.git
-
Compile the program
gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c -o hsh
- To run the shell, execute the compiled binary:
./hsh
exit
: Exit the shell.env
: Display the environment variables.
##Examples
- Execute a command:
$ ls
- Exit the shell:
$ exit
- Display environment variables:
$ env