Skip to content

nourhan031/Command-Line-Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Command Line Interpreter of Linux Systems using Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages