Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/kazimovzaman2/holbertonschool-simple_shell
- Owner: kazimovzaman2
- Created: 2023-12-17T20:09:25.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-31T12:29:47.000Z (about 1 year ago)
- Last Synced: 2024-04-14T07:39:11.452Z (9 months ago)
- Topics: c, linux, shell
- Language: C
- Homepage:
- Size: 278 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Authors: AUTHORS
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.