InMemory FileManagment_System

Overview

The Python Shell is a command-line interface designed to perform basic file system operations. It supports a set of commands to navigate, manipulate, and interact with the file system.

Running

Install Dependencies from Python Pip

pip install colorama

Clone the repo

git clone https://github.com/lithV/InMemory-FileManagement_System

Commands

Syntax:

1. ls - List Files

ls [directory_path]

Description: Displays the list of files and directories in the specified directory. If no directory path is provided, it lists the contents of the current directory.

2. cd - Change Directory

Syntax:

cd [directory_path]

Description: Changes the current working directory to the specified directory.

3. cp - Copy

Syntax:

cp [source_path] [destination_path]

Description: Copies the file or directory from the source path to the destination path.

4. mv - Move

Syntax:

mv [source_path] [destination_path]

Description: Moves the file or directory from the source path to the destination path.

5. dump - Dump RAM Disk

Syntax:

dump [file_name]

Description: Dumps the contents of the RAM Disk onto the disk with the specified file name.

6. cat - Concatenate and Display

Syntax:

cat [file_path]

Description: Displays the contents of the specified file.

7. rm - Remove

Syntax:

rm [file_path]

Description: Removes the specified file or directory.

8. exit - Exit the Shell

Syntax:

exit

Description: Exits the Python Shell.

9. mkdir - Create a new directory.

Syntax:

mkdir [file_name]

Description: Create a new directory..

File System Image

Notes Ensure that the paths provided for commands

(mkdir,ls, cd, cp, mv, dump, cat, rm)

are correct and accessible. Use the exit command to gracefully exit the Python Shell.