Skip to content

midaa1/simple_shell

Repository files navigation

Simple Shell Project

This is a basic implementation of a shell in C, designed to demonstrate fundamental concepts of operating systems and system programming.

Table of Contents


Features

  • Supports basic shell commands such as env', ls, and exit`.
  • Executes external programs.
  • Handles signal interrupts (Ctrl+D).

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

  1. Clone the repository:
git clone https://github.com/yourusername/simple-shell.git
  1. Compile the code:
gcc -Wall -Werror -Wextra -pedantic *.c -o shell
  1. Run the shell:
./shell

Usage

Once the shell is running, you can enter commands just like you would in a regular shell. The shell will parse and execute them accordingly.

Command Examples

Here are some example commands you can try:

  • ls: Lists the files in the current directory.
  • env: provides you the environment.
  • cat filename: Displays the contents of filename.
  • gcc filename.c -o output: Compiles filename.c and generates an executable named output.

Contributing

If you'd like to contribute to this project, please follow these steps:

  1. Fork the project on GitHub.
  2. Create a new branch with a descriptive name.
  3. Make your changes and commit them with clear messages.
  4. Push your changes to your branch.
  5. Submit a pull request.

AUTHERS

-Abdelhamid Eslam --> (abdelhamideslam900@gmail.com) -Habiba Rajab --> (habibaragab324@gmail.com)

About

This is an implementation of shell program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages