Skip to content

Java CLI for interacting with a computer system and performing common tasks.

Notifications You must be signed in to change notification settings

RanaEssam03/Command-Line-Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command-Line-Interpreter

Description

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.

It supports the following commands:

  • cd - change directory
  • echo - display a line of text
  • history - display the history of commands entered
  • cp - copy a file
  • rm - remove a file
  • touch - create a file
  • ls - list the contents of a directory
  • ls -r - list the contents of a directory recursively
  • mkdir - create a directory
  • rmdir - remove a directory
  • >> - redirect output to a file
  • > - redirect output to a file
  • pwd - print the current working directory
  • wc - count the number of lines, words, and characters in a file
  • exit - exit the shell

Usage

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

Authors

About

Java CLI for interacting with a computer system and performing common tasks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages