Core Features
Command Interface
- Linux-style command-line interaction
- Custom command parsing system
- Error handling for invalid commands
File System Operations
- Create and delete files and directories
- Navigate directory structure
- List directory contents
Process & Memory Simulation
- Basic process tracking
- Simulated memory allocation for tasks
- System activity logging
Command System
| Command | Description |
|---|---|
ls |
List directory contents |
mkdir folder |
Create new directory |
touch file.txt |
Create new file |
rm file.txt |
Delete file |
cd folder |
Change directory |
System Architecture
The simulator uses a command parser that interprets user input and maps each command to its corresponding system function, similar to how real shells operate.
Command Parser → interprets user input
File Manager → handles file & directory operations
Process Manager → simulates running processes
Memory Handler → allocates memory to tasks
Logger → tracks system activity
System Rules & Constraints
- Invalid commands are safely handled
- Directories must exist before navigation
- Files cannot be deleted if they do not exist
- Memory allocation follows predefined limits
Example Terminal Output
Sample interaction with the OS simulator:
┌───────────────────────────┐
Python OS Simulator
└───────────────────────────┘
> mkdir projects
Directory created
> touch main.py
File created
> ls
projects
main.py
> rm main.py
File deleted
Technologies Used
- Language: Python
- Interface: Command Line (CLI)
- System Ops: File System Handling
- Design: Modular Function Architecture
Project Links
Why This Project?
This project demonstrates how operating systems interpret commands, manage files, and simulate processes.