Skip to content

andreas-agouridis/linuxcmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Linux Terminal Simulator for Windows

Windows Batch MIT License Version

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.

Features

  • 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 (help command)
  • Admin Commands (sudo, su, exit sudo)
  • File Operations (ls, cat, touch, rm, etc.)
  • System Monitoring (ps, df, free)

Supported Commands

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

Getting Started

  1. Download the script:

    curl -O https://github.com/planbcode12/linuxcmd/releases/download/v2.0/linux-cmd.bat
  2. Run the terminal:

    linux_terminal.bat
  3. Start using Linux commands:

    user@PCNAME:~$ sudo mkdir /test
    [sudo] password for user: 
    user@PCNAME:~$ ls
    test

Customization

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)

Command Examples

# 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

Limitations

  • Not all Linux commands are available
  • Some commands behave differently than real Linux
  • Limited to Windows CMD capabilities
  • No actual Linux kernel or filesystem

Contributing

Contributions welcome! Please open an issue or PR for:

  • New command implementations
  • Bug fixes
  • Feature requests

License

MIT License - See LICENSE for details


Enjoy your Linux experience on Windows!

Note: This is a simulator - for full Linux compatibility consider using WSL

About

Linux Command Simulator for Windows

Resources

License

Stars

Watchers

Forks

Packages

No packages published