https://github.com/shabnam-khaqanpoor/mini-os
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.
https://github.com/shabnam-khaqanpoor/mini-os
compression directory-management disk-management file-operations opearting-system os scheduling virtual-disk
Last synced: 3 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/shabnam-khaqanpoor/mini-os
- Owner: Shabnam-Khaqanpoor
- License: gpl-3.0
- Created: 2025-01-08T12:09:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-24T15:37:48.000Z (11 months ago)
- Last Synced: 2025-12-30T02:44:58.886Z (7 months ago)
- Topics: compression, directory-management, disk-management, file-operations, opearting-system, os, scheduling, virtual-disk
- Language: Python
- Homepage:
- Size: 825 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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**
```bash
git clone https://github.com/Shabnam-Khaqanpoor/mini-OS.git
cd miniOS
```
### **3️⃣ Running the File System**
Start the file system simulation:
```bash
python Operating System.py
```
---
## 📌 Usage
### **Available Commands**
| Command | Description |
| ------------------------ | --------------------------------------- |
| `format` | Format the virtual disk |
| `create ` | Create a new file with content |
| `delete ` | Delete a file |
| `rename ` | Rename a file |
| `read ` | Read file contents |
| `run ` | Execute Python code in a file |
| `dir` | List all files in the current directory |
| `copy ` | Copy a file |
| `find ` | Search for files by name |
| `mkdir ` | Create a new folder |
| `rmdir ` | Remove an empty folder |
| `cd ` | Change directory |
| `cdup` | Move to the parent directory |
| `pwd` | Show the current directory |
| `compress ` | Compress a file using zlib |
| `decompress ` | Decompress a file |
| `schedule
---