A Simple Shell implemented in C.
This project is a simple shell implemented in the C programming language. It provides a basic command-line interface that allows users to execute commands and interact with their operating system.
- Execute basic shell commands.
- Handle basic input/output redirection.
- Support command piping (e.g.,
command1 | command2
).
Before you begin, ensure you have met the following requirements:
- A C compiler (e.g., GCC) installed on your system.
- A basic understanding of C programming.
- A Unix-like operating system (Linux, macOS) is recommended for full compatibility.
To get a local copy up and running, follow these simple steps:
-
Clone the repository:
git clone https://github.com/seunrae/simple_shell.git
-
Change into the project directory:
cd simple-shell
-
Compile the source code:
gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c -o hsh
-
Run the shell:
./hsh
Once the shell is running, you can use it just like a regular command-line shell. Here are some basic commands to get you started:
- Run a command: "$ ls -l"
- Redirect input/output: "$ cat input.txt > output.txt"
- Use pipes to combine commands: "$ command1 | command2"
Feel free to explore more advanced features and commands as you become familiar with the shell.