Skip to content

Youssef-Bahaa/CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

30 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Java CLI Shell Emulator

This project is a pure Java application replicating basic features of a Linux shell. It enables users to run commands and interact with the file system in a terminal-like environment, using familiar shell-like syntax.


๐Ÿ› ๏ธ Key Features

  • Interactive command-line interface
  • Supports basic commands:
    • File/Directory navigation (cd, pwd, ls)
    • Output and messaging (echo)
    • Exiting the shell (exit)
  • Clean and extensible Java codebase

๐Ÿš€ Getting Started

Prerequisites

  • Java (JDK 8 or newer)

Setup

  1. Clone the repository:

    git clone https://github.com/Youssef-Bahaa/CLI.git
    cd CLI
  2. Compile the program:

    javac Main.java
  3. Run the shell:

    java Main

๐Ÿ’ก Example Usage

> pwd
/home/user/CLI

> ls
Main.java  README.md

> cd src
> ls
Shell.java  Commands.java

> echo Hello World!
Hello World!

About

A Java program that mimics the behavior of a Linux shell for basic commands.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages