Skip to content

ABouziani/0-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

o-shell

o-shell is a simple Unix-like shell implemented in Rust. It supports basic shell commands such as cd, pwd, and more, providing a lightweight and educational shell environment.

Features

  • Change directory (cd)
  • Print working directory (pwd)
  • Execute system commands
  • Basic error handling

Getting Started

Prerequisites

  • Rust (latest stable version recommended)

Building

Clone the repository and build the project:

git clone https://github.com/ABouziani/0-shell.git
cd o-shell
cargo build --release

Running

To start the shell:

cargo run

Usage

Once running, you can use commands like:

  • cd [directory] — Change the current directory
  • pwd — Print the current working directory
  • Other system commands

Project Structure

  • src/commands/ — Contains command implementations (e.g., cd.rs, pwd.rs)
  • src/main.rs — Entry point for the shell

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages