This project is a custom shell built in C. The shell displays a prompt, waits for the user to type a command, and executes the command. It handles simple, single-word commands without advanced features like semicolons, pipes, or redirections. If an executable cannot be found, an error message is printed, and the prompt is displayed again.
- Displays a prompt and waits for user input
- Executes simple, single-word commands
- Handles errors gracefully
- Built in C for performance and efficiency
To run this project, you need to have the following installed on your system:
- Fork the repository
Fork the repository to your own GitHub account and clone it to your local machine using the following commands:
git clone https://github.com/your-username/simlpe_shell.git
cd simple_shellCompile the code
- Use GCC to compile the code:
gcc -o shs *.c- Run the shell
Execute the shell by running the following command in your terminal:
./shs- Interact with the shell
- The shell will display a prompt and wait for your input.
- Type a command and press Enter.
- The shell will execute the command and display the prompt again.
roy@ubuntu:~/shell$ ./shs
$ ls
$ pwd
$ echo "Hello, World!"
$ exitContributions are welcome! Please fork the repository and create a pull request with your changes. Ensure your code follows the project's coding guidelines.
- Thanks to ALX-AFRICA, instructors and mentors for their guidance.
- Inspired by the basic shell functionality of Unix-based systems.
Contributions are always welcome!
Please adhere to this project's code of conduct.