Minishell is a simple shell implementation written in C. It provides a minimalistic command-line interface with basic shell functionalities.
Minishell is a lightweight shell designed to demonstrate basic shell operations and provide a learning resource for understanding shell programming. It includes features commonly found in Unix-like shells, allowing users to interact with the system through a command-line interface.
cd
, echo
, pwd
, export
, unset
)Minishell is a lightweight shell designed to demonstrate basic shell operations, with a special emphasis on efficiently searching for and launching executables. It provides a command-line interface that allows users to execute programs either by specifying their absolute or relative path or relying on the system's PATH variable.
cd
, echo
, pwd
, export
, unset
)Describe the command execution feature here. Include any details about how Minishell executes commands and any specific behaviors.
Minishell supports various built-in commands. Some examples include:
cd
: Change directoryecho
: Print arguments to the standard outputpwd
: Print the current working directoryexport
: Set environment variablesunset
: Unset environment variablesMinishell supports input/output/appended/heredoc redirection. Here are examples:
command < input.txt
command > output.txt
command >> output.txt
command << EOF
Execute commands in a pipeline using the |
operator:
```bash
command1 | command2
```
To use Minishell, follow these steps:
Clone the repository:
git clone https://github.com/yourusername/minishell.git
cd minishell
Build the project:
make
Run Minishell:
./minishell
Minishell supports standard shell commands and features. Here are some examples:
Run a command:
ls -l
Change directory:
cd /path/to/directory
Input/output redirection:
ls > output.txt
Pipeline:
ls | grep keyword
For more information, refer to the man page or help command within Minishell.
Contributions are welcome! If you'd like to contribute to Minishell, please follow these guidelines: