Bash to Cmd Cheatsheet
published: February 9, 2025
tags:
bash |
cmd |
reading time: 1 minutes
A cheatsheet of the command prompt version of commonly used bash commands because I’m tired of googling these.
Open cmd
Windows Key + R to open the Run program and type “cmd” and then hit Enter to open a new Command Prompt shell.
cd
Lucky you, this is just cd
!
pwd
echo %cd%
or just,
cd
ls
dir
cat
type nul > your_file.txt
mkdir
Lucky you, this is just mkdir
!
touch
type nul > your_file.txt
clear
cls
diff
FC file1.txt file2.txt
exit
Lucky you, this is just exit
!