A Java-based command-line interface that implements common Unix/Linux commands. This project provides a simple and extensible CLI framework with support for basic file system operations and command chaining.
pwd- Print current working directorycd <directory>- Change directoryecho- Print argumentsls- List directory contentsls -a- List including hidden filesls -r- List in reverse order
mkdir <dirName>- Create new directoryrmdir <dirName>- Remove directorytouch <fileName>- Create empty filemv <src> <dest>- Move or rename filerm <fileName>- Remove filecat <fileName>- Display file contents
> <fileName>- Redirect output to file (overwrite)>> <fileName>- Append output to file|- Pipe command output to another command
exit- Exit the CLIhelp- Display help message
src/- Source code directorymain/- Main application codecommands/- Command implementationsfileSystem/- File system managementexecutor/- Command execution logicparser/- Command parsing logic
test/- Unit tests
lib/- External dependenciesbin/- Compiled output files
- Java Development Kit (JDK) 8 or higher
- Visual Studio Code with Java extensions
- Clone the repository
- Open the project in Visual Studio Code
- Ensure Java extensions are installed
- Build the project using the integrated build tools
- Navigate to the project directory
- Run the main class: