Skip to content

Latest commit

Β 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Markdown

Raptor Shell πŸ¦…

A custom, lightweight Unix shell built from scratch in C. Raptor Shell provides a terminal experience complete with custom dynamic prompts, command execution, piping, and command chaining.


πŸš€ Features

  • Custom Dynamic Prompt: Features a sleek, two-line Kali-inspired prompt that dynamically updates with your current working directory (getcwd).
  • Command Execution: Executes standard system binaries using fork() and execvp().
  • Piping Support (|): Seamlessly redirects standard output of one command into the standard input of another using system pipe() and dup2().
  • Command Chaining (&&): Allows executing multiple sequential commands.
  • History Support: Built on top of the GNU readline library, enabling command history navigation using arrow keys.

πŸ› οΈ Prerequisites

Before compiling and running Raptor Shell, ensure you have a C compiler (like gcc) and the GNU Readline development library installed on your Linux system.

On Ubuntu/Debian/Kali Linux:

sudo apt update
sudo apt install build-essential libreadline-dev
πŸ“₯ Installation & Compilation
Clone the repository:

Bash
git clone [https://github.com/null31596/raptor-shell.git](https://github.com/null31596/raptor-shell.git)
cd raptor-shell
Compile the source code:

Bash
gcc -o raptor main.c -lreadline
(Note: Replace main.c with the actual name of your main source file if it differs).

Run the Shell:

Bash
./raptor
πŸ’‘ Usage Examples
Once inside the Raptor Shell, you can run standard commands, use pipes, or chain commands:

Basic Commands:

Bash
raptor:/home/user/raptor-shell> ls -l
Piping:

Bash
raptor:/home/user/raptor-shell> ls | grep ".c"
Command Chaining:

Bash
raptor:/home/user/raptor-shell> make && ./raptor
🀝 Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

πŸ“ License
This project is open-source and available under the MIT License.

About

shell containing the quantities of all command operations on Linux.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages