Windows CMD → Android/Linux Terminal Cheat Sheet

This cheat sheet helps you run common Windows CMD commands on Android/Linux terminals (like Termux or Terminal Emulator for Android). Includes dark mode-friendly tips for aliases and scripting.

1. Common Commands

Windows CMDLinux / Termux / Terminal EmulatorNotes
dirlsList files and directories
cd foldercd folderChange directory
copy file destcp file destCopy file
del filerm fileDelete file
move file destmv file destMove file
mkdir foldermkdir folderCreate directory
rmdir folderrmdir folderRemove empty directory
clsclearClear terminal screen
type filecat fileDisplay file contents
attribchmod / chownChange file permissions or ownership
tasklisttopShow running processes
echo textecho textDisplay text
exitexitClose terminal session

2. Creating Aliases in .bashrc

You can make Windows-like commands work in Linux/Android terminals using aliases. Here’s how:

  1. Open or create the .bashrc file in your home directory:
  2. nano ~/.bashrc
  3. Add aliases at the end of the file. Example:
  4. 
    alias dir='ls'
    alias copy='cp'
    alias del='rm'
    alias move='mv'
    alias md='mkdir'
    alias rd='rmdir'
    alias cls='clear'
    
  5. Save and exit the editor (Ctrl+O, Enter, Ctrl+X).
  6. Apply aliases immediately without restarting the terminal:
  7. source ~/.bashrc
  8. Aliases now work. Example:
  9. dir        # lists files
    copy file1 file2  # copies file1 to file2
    cls        # clears the screen
    
  10. Every time you start a new terminal session, .bashrc runs automatically and sets up your aliases.

3. Tips & Notes