https://github.com/bkarthik7/my_shell
Building a Shell using Rust
https://github.com/bkarthik7/my_shell
rust
Last synced: 7 months ago
JSON representation
Building a Shell using Rust
- Host: GitHub
- URL: https://github.com/bkarthik7/my_shell
- Owner: BKarthik7
- Created: 2024-09-07T13:25:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-07T15:52:32.000Z (about 1 year ago)
- Last Synced: 2025-01-27T08:42:43.735Z (8 months ago)
- Topics: rust
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MyShell
This is a simple shell implemented in Rust that supports basic command execution, pipes (|), and changing directories
(cd)
. The shell continues to execute commands until you explicitly exit using the exit command.## Features
- **Command Execution**: Execute basic system commands like
ls
,echo
,cat
, etc.
- **Piping**: Supports piping between multiple commands using|
.
- **Change Directory**: Allows changing the working directory withcd
.
- **Exit**: Exit the shell with theexit
command.## Usage
1. Clone the repository:```sh
git clone https://github.com/BKarthik7/my_shell.git
cd my_shell
```2. Install rust (Installation method may be different):
```sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh```
3. Build the project:
```sh
cargo build
```4. Run the shell:
```sh
cargo run
```5. Use the shell interactively:
```bash
> ls
> echo "Hello World" | cat
> cd ..
> exit
```## Contributing
Contributions are always welcome!
Feel free to contribute by submitting a pull request or opening an issue. Contributions to improve features and fix bugs are always welcome!
## Reference
[Build Your Own X](https://build-your-own-x.vercel.app/)