This project is a pure Java application replicating basic features of a Linux shell. It enables users to run commands and interact with the file system in a terminal-like environment, using familiar shell-like syntax.
- Interactive command-line interface
- Supports basic commands:
- File/Directory navigation (
cd,pwd,ls) - Output and messaging (
echo) - Exiting the shell (
exit)
- File/Directory navigation (
- Clean and extensible Java codebase
- Java (JDK 8 or newer)
-
Clone the repository:
git clone https://github.com/Youssef-Bahaa/CLI.git cd CLI -
Compile the program:
javac Main.java
-
Run the shell:
java Main
> pwd
/home/user/CLI
> ls
Main.java README.md
> cd src
> ls
Shell.java Commands.java
> echo Hello World!
Hello World!