Skip to content

Latest commit

 

History

History
21 lines (20 loc) · 1.3 KB

README.md

File metadata and controls

21 lines (20 loc) · 1.3 KB

Java Command-Line-Interpreter (CLI)

A simple text-based interface for interacting with your operating system. Users can input commands through the keyboard and press enter, and the CLI will parse and execute the indicated commands. The CLI will keep accepting different commands until the user enters "exit" which will terminate it.

Implemented Commands

1- echo: Prints the argument passed to it.
2- pwd: Prints the current path.
3- mkdir: Creates a new directory.
4- rmdir: Removes empty directories.
5- ls: Lists the contents of the current directory sorted alphabetically.
6- ls -r: Lists the contents of the current directory in reverse order.
7- cp: Copies the first file onto the second one.
8- cd: Changes the current working directory.
9- touch: Creates a new file.
10- rm: Removes a file.
11- cat: Prints contents of a file.
12- wc: Used for counting purpose. Where it displays a four-columnar output of the number of lines, number of words, number of characters and file name.
13- history: Displays the commands you’ve last entered.
14- exit: Terminates the program.