Skip to content

JanSkn/c-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

C Shell

A simple shell written in C.
Explore the docs »

Report Bug · Request Feature

About The Project

This C Shell can execute programs in the foreground or background (own programs or cd, ls, ...), wait for processes and use one pipe.

(back to top)

Built With

This project was built with C

(back to top)

Installation

Follow these steps to run the project.

  1. Clone the repo
    git clone https://github.com/janskn/c-shell.git
  2. Install the build-essential package
    sudo apt install build-essential
    This installs a bunch of new packages including gcc, g++ and make

(back to top)

Usage

Navigate to the path of the shell.c file.
Enter

   gcc -o shell shell.c

and afterwards

   ./shell

Or enter

   make run

Once you did this you can simply enter all the commands you want to get executed in the terminal. Stop the program by typing exit.

(back to top)

Contributing

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

About

Simple C shell from scratch.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published