Skip to content

Mini OS is a Python-based simulation of a FAT-style file system, offering virtual disk management, file operations, directory handling, compression, scheduling, and command logging. It supports features like file creation, deletion, renaming, execution, and disk storage management, making it a useful tool for understanding file system operations.

License

Notifications You must be signed in to change notification settings

Shabnam-Khaqanpoor/Mini-OS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini OS

📂 Operating System File System Simulation

Mini OS is a file system simulation implemented in Python, providing functionalities for file creation, deletion, renaming, compression, scheduling, and directory management. It simulates a FAT-based file system with block-based storage, including disk formatting and metadata management.


🚀 Features

Virtual Disk Management with block-based allocation
File Operations: Create, delete, rename, read, and execute files
Directory Management: Create, remove, and navigate directories
Compression & Decompression using zlib
File Scheduling: Execute files after a time delay
Storage Management: Check disk usage and available space
Command Logging for auditing user actions


📁 Project Structure

miniOS/
│── Operating System.py      # Core file system implementation
│── disk.img                 # Virtual disk storage
│── log.txt                  # Logs executed commands
│── README.md                # Project documentation

🔧 Installation & Setup

1️⃣ Prerequisites

Ensure you have:

  • Python 3.x installed

2️⃣ Clone the Repository

git clone https://github.com/Shabnam-Khaqanpoor/mini-OS.git
cd miniOS

3️⃣ Running the File System

Start the file system simulation:

python Operating System.py

📌 Usage

Available Commands

Command Description
format Format the virtual disk
create <file> <data> Create a new file with content
delete <file> Delete a file
rename <old> <new> Rename a file
read <file> Read file contents
run <file> Execute Python code in a file
dir List all files in the current directory
copy <src> <dest> Copy a file
find <keyword> Search for files by name
mkdir <folder> Create a new folder
rmdir <folder> Remove an empty folder
cd <folder> Change directory
cdup Move to the parent directory
pwd Show the current directory
compress <file> Compress a file using zlib
decompress <file> Decompress a file
schedule <file> <time> Run a file after a delay (seconds)
storage Display disk usage
help Show available commands
exit Shut down the file system

About

Mini OS is a Python-based simulation of a FAT-style file system, offering virtual disk management, file operations, directory handling, compression, scheduling, and command logging. It supports features like file creation, deletion, renaming, execution, and disk storage management, making it a useful tool for understanding file system operations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages