Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kazimovzaman2/holbertonschool-simple_shell

Simple Shell program which used in Linux. The groupwork of Kamal Huseynli and Zaman Kazimov.
https://github.com/kazimovzaman2/holbertonschool-simple_shell

c linux shell

Last synced: about 2 months ago
JSON representation

Simple Shell program which used in Linux. The groupwork of Kamal Huseynli and Zaman Kazimov.

Awesome Lists containing this project

README

        

# Simple Shell

A simple Unix-like shell implementation in C.

## Overview

This project is a minimalistic shell implementation designed to demonstrate fundamental shell functionalities. It focuses on core features such as:

- Executing commands
- Handling command-line arguments
- Interacting with the environment

## Usage

1. Compile the code using a C compiler like GCC:
```bash
gcc -o hsh *.c
```
2. Run the shell:
```bash
./hsh
```
3. Type commands as you would in a standard Unix shell.

## Implemented Features

- Reads user input from the command line.
- Parses commands and arguments using strtok.
- Executes commands using fork, execve, and waitpid.
- Handles errors with appropriate messages.
- Searches for executables in the PATH environment variable.

## Contributors

- [Kamal Huseynli](https://github.com/Kamalusta)
- [Zaman Kazimov](https://github.com/kazimovzaman2)

## License

Feel free to customize the README according to the specific details of your project and the preferences of your audience.