Skip to content

This is a project done to build a Custom shell using C programming language. Most of Unix systems are managed by using Shell. Unix systems all have, sometimes with slight differences, the same set of commands. While it is not too hard to remember commands, it might be hard to remember all of their options and how exactly to use them.

Notifications You must be signed in to change notification settings

Iganza-roy/simple_shell

Repository files navigation

Logo

SIMPLE_SHELL

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.


Features

  • Displays a prompt and waits for user input
  • Executes simple, single-word commands
  • Handles errors gracefully
  • Built in C for performance and efficiency

Prerequisites

To run this project, you need to have the following installed on your system:

Installation

  1. 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_shell

Compile the code

  1. Use GCC to compile the code:
gcc -o shs *.c

Usage

  1. Run the shell

Execute the shell by running the following command in your terminal:

./shs
  1. 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.

Example

roy@ubuntu:~/shell$ ./shs
$ ls
$ pwd
$ echo "Hello, World!"
$ exit

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your changes. Ensure your code follows the project's coding guidelines.

Acknowledgements

  • Thanks to ALX-AFRICA, instructors and mentors for their guidance.
  • Inspired by the basic shell functionality of Unix-based systems.

Contributing

Contributions are always welcome!

Please adhere to this project's code of conduct.

Authors

About

This is a project done to build a Custom shell using C programming language. Most of Unix systems are managed by using Shell. Unix systems all have, sometimes with slight differences, the same set of commands. While it is not too hard to remember commands, it might be hard to remember all of their options and how exactly to use them.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages