A feature-rich Windows batch script that emulates a Linux terminal environment with no dependencies required. Perfect for learning Linux commands or when you need a quick Linux-like experience on Windows.
- Real Linux Terminal Experience with familiar prompt style (
user@host:path$) - Sudo Support with password protection (default: "password")
- 40+ Common Linux Commands implemented with Windows equivalents
- No Installation Needed - Runs natively in Windows CMD
- Interactive Help System (
helpcommand) - Admin Commands (
sudo,su,exit sudo) - File Operations (
ls,cat,touch,rm, etc.) - System Monitoring (
ps,df,free)
| Category | Commands |
|---|---|
| File System | ls, ll, pwd, cd, mkdir, rmdir, rm, cat, touch, grep |
| System Info | whoami, date, ver, uname, ps, df, free |
| Networking | ifconfig, netstat, ping |
| Admin | sudo, su, exit sudo |
| Utilities | clear, help, exit, echo |
-
Download the script:
curl -O https://github.com/planbcode12/linuxcmd/releases/download/v2.0/linux-cmd.bat
-
Run the terminal:
linux_terminal.bat
-
Start using Linux commands:
user@PCNAME:~$ sudo mkdir /test [sudo] password for user: user@PCNAME:~$ ls test
Edit these variables at the top of the script:
set PROMPT_COLOR=0A (Color code for terminal)
set PROMPT_USER=%USERNAME% (Default username)
set DEFAULT_SUDO_PASS=password (Change default sudo password)# Create and edit files
touch example.txt
echo "Hello Linux" > example.txt
cat example.txt
# System monitoring
df -h
free -m
ps aux
# Network commands
ifconfig
netstat -tulnp
ping google.com- Not all Linux commands are available
- Some commands behave differently than real Linux
- Limited to Windows CMD capabilities
- No actual Linux kernel or filesystem
Contributions welcome! Please open an issue or PR for:
- New command implementations
- Bug fixes
- Feature requests
MIT License - See LICENSE for details
Enjoy your Linux experience on Windows!
Note: This is a simulator - for full Linux compatibility consider using WSL