This is a command line interpreter (CLI) that allows users to interact with a computer system using text commands. It provides a simple and efficient way to perform common tasks, such as navigating the file system, managing files, and launching applications.
cd- change directoryecho- display a line of texthistory- display the history of commands enteredcp- copy a filerm- remove a filetouch- create a filels- list the contents of a directoryls -r- list the contents of a directory recursivelymkdir- create a directoryrmdir- remove a directory>>- redirect output to a file>- redirect output to a filepwd- print the current working directorywc- count the number of lines, words, and characters in a fileexit- exit the shell
To run the program, first compile the source code using the following command:
javac Terminal.java Parser.java Commands.java
Then, run the program using the following command:
java Terminal