Welcome to the Minishell project! This is a simple shell implementation that provides basic command execution and shell functionalities. It allows users to interact with the operating system by entering commands just like they would in a typical terminal.
- Command execution and basic shell functionalities.
- Support for simple command chaining using
;
. - Input and output redirection using
<
and>
. - Pipelining of commands using
|
. - Environment variable handling.
- Signal handling for interrupt signals (e.g., Ctrl+C).
- A Unix-like operating system (Linux/macOS).
- GCC (GNU Compiler Collection) or a compatible C compiler.
-
Clone the repository:
git clone https://github.com/your-username/minishell.git
-
Navigate to the project directory
cd minishell
-
Compile the source code:
make
- Execute the compiled binary:
./minishell
- You should now see the minishell prompt. You can start entering commands.
- To chain commands, separate them with ;. For example: ls -l ; echo Hello.
- To redirect input or output, use < and >. For example: cat < input.txt > output.txt.
- To pipe commands, use |. For example: ls -l | grep ".txt".
Have fun!