Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruben2163/terminal-emulator-python
This is an open source project to simulate the unix terminal in python
https://github.com/ruben2163/terminal-emulator-python
command-line emulator linux mit-license python python-terminal python3 pythonterminal simulater teminal-emulator terminal unix virtual virtual-machine
Last synced: about 2 months ago
JSON representation
This is an open source project to simulate the unix terminal in python
- Host: GitHub
- URL: https://github.com/ruben2163/terminal-emulator-python
- Owner: Ruben2163
- License: mit
- Created: 2024-12-02T14:19:28.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-03T21:05:36.000Z (about 2 months ago)
- Last Synced: 2024-12-03T22:18:42.735Z (about 2 months ago)
- Topics: command-line, emulator, linux, mit-license, python, python-terminal, python3, pythonterminal, simulater, teminal-emulator, terminal, unix, virtual, virtual-machine
- Language: Python
- Homepage:
- Size: 123 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# **Python Terminal**
A Python-based Linux terminal simulation that allows users to execute basic file system commands within a virtual environment. Includes support for file management, directory navigation, and command aliases.
---
![Demo](READMEIMGS/demo.jpg)
## **Features**
- **File System Management**:
- Create folders and files (`mkdir`, `touch`).
- List directory contents (`ls`).
- Read and delete files (`read`, `rm`).
- Rename files or folders (`mv`).
- Navigate directories (`cd`, `cd ..`, `pwd`).
- Delete folders (`rmdir`).
- **Aliases**:
- Define custom aliases for frequently used commands (`alias`).
- Remove aliases (`unalias`).
- Save and load aliases automatically.
- **Help Menu**:
- View all available commands using the `help` command.
- **Persistence**:
- Virtual file system and aliases persist across sessions.---
## **Installation**
### **Prerequisites**
- Python 3.6 or higher.### **Steps**
1. Clone the repository:
```bash
git clone https://github.com/Ruben2163/Python-Terminal.git
1. Run Main.py:
```bash
python3 main.py
---
## **Basic commands**| Commands|Usage|
| -------|------------------ |
| mkdir |Create a folder.|
|touch | Create a file.|
|ls |List contents of the current directory.|
|read |Display the content of a file.|
|rm |Delete a file.|
|rmdir |Delete a folder.|
|mv |Rename a file or folder.|
|cd |Navigate to a directory.|
|cd .. |Go to the parent directory.|
|pwd |Print the current working directory.|
|help |Display the help menu.|
|exit |Exit the terminal.|
|alias |Create a shortcut for a command.|
|unalias |Remove an alias.|---
## **Project Structure**
```plaintext
Python-Terminal/
│
├── main.py # Main script for the terminal interface
├── file_system.py # Handles file system and alias logic
├── virtual_fs/ # Virtual file system root directory
└── README.md # Documentation (this file)
```
---## **Contributing**
Contributions are welcome! If you have suggestions for improvements or new features, feel free to:
1. Fork the repository.
2. Create a new branch.
3. Submit a pull request.---
## **License**
This project is licensed under the MIT License. See the LICENSE file for details.