Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yyomna-mmaged/command-line-interpreter

Command Line Interpreter by Java
https://github.com/yyomna-mmaged/command-line-interpreter

command-line-interpreter java operating-system

Last synced: 28 days ago
JSON representation

Command Line Interpreter by Java

Awesome Lists containing this project

README

        

# Command Line Interpreter (CLI) Project

## Overview
The Command Line Interpreter (CLI) is a Java-based tool designed to mimic shell functionality. It allows users to interact with the file system, manage files, and process text via commands.

---

## Features
### Directory and File Commands
- **`pwd`**: Prints the current working directory.
- **`cd `**: Changes the working directory to ``.
- **`ls`**: Lists non-hidden files in alphabetical order.
- **`ls-a`**: Lists all files (including hidden).
- **`ls-r`**: Lists non-hidden files in reverse order.
- **`mkdir `**: Creates one or more directories named ``, ``.
- **`rmdir `**: Removes one or more empty directories.
- **`touch `**: Creates an empty file.
- **`rm `**: Deletes a file.
- **`mv `**: Moves or renames a file.

### Text Processing Commands
- **`cat `**: Displays file contents.
- **`>`**: Overwrites a file.
- **`>>`**: Appends content to a file.
- **`sort `**: Sorts file contents.
- **`uniq`**: Removes duplicate lines from sorted input.

### Advanced Features
- **Piping (`|`)**: Combines commands for advanced functionality.