A minimal shell written in C
- Execute system commands
- Built-in commands (
cd,exit,pwd) - Command history navigation
- Supports Linux and MacOS
- Lightweight and fast
# Clone the repository
git clone https://github.com/yourusername/psh.git
cd psh
# Quick Install (installation bash script)
./install.sh
# Manual Install (makefile)
make
sudo make installsudo make uninstallLaunch psh by typing:
pshinside your terminal
Basic commands:
psh> ls -la
psh> cat file.txt
psh> echo "Hello, World!"
psh> mkdir newfolderA shell is the interface that sits between the applications and the kernel. It takes a command, parses it, separates it into tokens, executes system calls based on them
- Prompt
- Read input
- Lex input
- Parse Lexed input
- Interpret Parsed input
- Repeat
- Cleanup
- No pipe support (
|) yet - No redirection (
>,<) yet - No logical operators (
&&,||) yet - No background processes (
&) yet - No command history by arrow keys yet
Contributions are welcome! Feel free to open issues or submit pull requests.
MIT License