Skip to content

Ap1311/pyterminal-emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pyterminal-emulator - Linux Terminal emulator in any OS


🌟 Description

pyterminal-emulator is a powerful simulation of the Linux command-line environment that runs directly on Windows. It is specially designed for:

  • Students who cannot install Linux due to lack of knowledge, limited storage, or fear of corrupting their system.
  • Developers who want to build and test terminal-based tools with real command output.
  • Educators who want to demonstrate Linux CLI without needing virtual machines or dual-boot setups.

You can run commands like cp, mv, chmod, git, curl, bash, python, and many more — just like in a real Linux environment — all within your current operating system.


✅ Features

  • ✅ Simulates real Linux commands with actual command output
  • ✅ Includes Git, Curl, Bash, Python, Cat, and more
  • ✅ Implements core Unix file operations: cp, mv, touch, ln, chmod, find, etc.
  • ✅ Includes advanced tools: chown, chgrp, tar, gzip, zip, and umask
  • ✅ Root and guest user roles simulation
  • ✅ Python-based and fully customizable
  • ✅ Educational and lightweight

🛠️ Installation

Install from PyPI:

pip install pyterminal-emulator

Or install from source:

git clone https://github.com/ap1311/pyterminal-emulator
cd pyterminal
python setup.py install

📋 Commands Supported

Command Description
ls List directory contents
cd Change directory
pwd Show current path
mkdir Make directory
rm Remove file/folder
whoami Show current user role
sudo su Switch to root user
cp Copy files
mv Move/rename files
touch Create empty files
head Show top lines of a file
tail Show last lines of a file
ln Create symbolic links
find Search files
chmod Change file permissions
chown Change file owner
chgrp Change file group
umask Set default permission mask
tar Archive and extract tar files
gzip Compress and decompress files
zip Compress files in .zip format
cat Display file content
bash Run bash scripts
python Run Python scripts
git Git commands (clone, push, pull…)
curl Fetch from URL
wget Download from URL

✍️ Example

chmod +x script.py
cp file.txt backup/
cd foldername
git clone https://github.com/username/repo.git
bash install.sh
python3 run.py

🎯 Use Cases

👨‍🎓 Teaching Linux CLI to beginners

💻 Building terminal-based apps without Linux

🧪 Testing Linux command-line tools

🎓 Projects for students and educators

⚠️ Disclaimer

This project is for educational purposes only. It does not provide a full Linux shell or kernel. It simulates Linux-like command execution using Python under a controlled environment. It is not meant to replace real Linux systems.

[~] Find Me on :

  • Github

  • Gmail

  • Telegram

  • WhatsApp