Defthon is a lightweight, Linux-inspired terminal operating system written entirely in Python.
It is designed for learning, experimentation, and fun.
Defthon recreates the feel of popular Linux terminals (Ubuntu, Debian, etc.) by implementing
classic commands like uptime, cal, cmatrix, find, cat, cp, ls etc.
This project is perfect for:
- 📖 Learning how terminals work
- 🖥 Practicing Python
- 🔧 Building command systems
- 📋 Understanding OS-like concepts
- Linux-style command prompt
- Cross-platform (Android, Windows, Linux, macOS)
- File searching and text filtering
- Downloading files from web
- Third party app support
- Matrix rain animation
- Other classic commands
Use help command to see all available commands and usage.
Special Commands:
defstoreis a default app for installing, uninstalling or updating third party apps.
tdcommand is used to use the third party apps.
Note
Images used in the documentation is for example, main program may be different
- Python 3.8+
- Third party library:
pip install colorama pip install requests
- Clone this repository using
git clone:git clone https://github.com/samail-islam/Defthon
- Install the requirements manually or use:
pip install -r requirements.txt
- Run the
main.pyfile to start the program.
Defthon uses:
- built in modules like
os,shutil,sys,subprocess,pathlibetc for real os level operations. coloramafor bringing color to the terminal.requestsfor installing third party apps and downloading file from internet or other web based tasks.
This program is licensed under GNU General Public LICENSE v2
Caution
Defthon is not a toy program, it can delete, edit files/directory or install things using pip. Use it with caution.



