https://github.com/sumitbhuia/shell
A high-efficiency C++ shell interfacing with the Linux kernel.
https://github.com/sumitbhuia/shell
cli cmake cpp23 shell vcpkg
Last synced: about 1 month ago
JSON representation
A high-efficiency C++ shell interfacing with the Linux kernel.
- Host: GitHub
- URL: https://github.com/sumitbhuia/shell
- Owner: sumitbhuia
- Created: 2025-01-31T13:30:03.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-31T13:39:20.000Z (over 1 year ago)
- Last Synced: 2025-06-05T05:47:21.643Z (12 months ago)
- Topics: cli, cmake, cpp23, shell, vcpkg
- Language: C++
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom Linux Shell in C++
## Overview
A high-efficiency custom shell written in C++ that seamlessly interfaces with the Linux kernel. It leverages system calls for precise command execution, optimizes process management with advanced forking, and ensures robust input parsing with dynamic memory handling.
## Features
- **Command Execution**: Supports execution of built-in and external Linux commands.
- **Process Management**: Optimized for performance with efficient forking and execution.
- **Input Parsing**: Handles user input robustly with dynamic memory management.
- **Minimalistic Interface**: Provides a clean and efficient CLI experience.
## Installation
### Prerequisites
- Linux-based OS
- C++ compiler (g++ recommended)
### Build Instructions
```sh
# Clone the repository
git clone https://github.com/sumitbhuia/shell.git
cd shell
# Run the shell
./start.sh
```
## Usage
- Enter any valid Linux command (e.g., `ls`, `pwd`, `cd`, `echo "Hello"`).
- Use `exit` to terminate the shell.
## Future Enhancements
- Redirection and piping support .
- Support for background processes (`&` operator).
- Enhanced error handling and debugging utilities.
- Custom environment variable support.
---
Developed by Sumit Bhuia