A feature-rich terminal shell written in C++ for Windows with colorful output and advanced commands.
- 🎨 Colorful Interface - Enhanced visual experience with color-coded output
- 📁 File Operations - Create, delete, view files and directories
- 📝 Command History - Track up to 100 recent commands
- 🔄 Output Redirection - Support for
>and>>operators - 🏠 Smart Navigation - Support for
cd -(previous dir) andcd ~(home dir) - 📊 Readable File Sizes - Automatic conversion to KB/MB/GB
ls [path]- List directory contents with file sizespwd- Print working directorycd <dir>- Change directorymkdir <dir>- Create a new directoryrmdir <dir>- Remove an empty directoryrm <file>- Delete a filetouch <file>- Create a new filecat <file>- Display file contents with line numbers
echo <text>- Display text (supports redirection)date- Display current date and time (12-hour format)history- Show command historyenv- Show environment variables (PATH formatted for readability)clear- Clear the screenhelp- Show all available commandsexit- Exit the shell
>- Overwrite file (e.g.,echo hello > file.txt)>>- Append to file (e.g.,echo world >> file.txt)
g++ -std=c++17 shell.cpp -o shell.exe- Windows OS
- C++17 compiler (MSYS2/MinGW recommended)
- Windows API support
Simply run the compiled executable:
./shell.exeOmar Tarek
Feel free to use and modify this project for educational purposes.

