Linux to Windows Command Cheat Sheet

After 25 years of working primarily in Linux, I'm now transitioning more of my workflow to Windows 11. Stability, accessibility, and low-maintenance usability matter — especially when time and energy are limited. This guide compares familiar Linux commands with their Windows CMD and PowerShell counterparts to help streamline your shift and keep you productive with minimal friction.

Linux Windows CMD PowerShell Description
lsdirGet-ChildItemList directory contents
cd /home/user/Downloadscd C:\Users\user\DownloadsSet-LocationChange directory
pwdcdGet-LocationPrint current directory
cp file1 file2copy file1 file2Copy-Item file1 file2Copy file
mv file newloc/move file newloc\Move-ItemMove file
rm filedel fileRemove-ItemDelete file
touch file.txtecho. > file.txtNew-Item file.txt -ItemType FileCreate empty file
mkdir mydirmkdir mydirNew-Item mydir -ItemType DirectoryMake directory
rmdir mydirrmdir mydirRemove-Item mydir -RecurseRemove directory
cat file.txttype file.txtGet-Content file.txtView file contents
nano file.txt(not native)Use Notepad or editorEdit file
toptasklistGet-ProcessView running processes
kill 1234taskkill /PID 1234Stop-Process -Id 1234Kill process by PID
df -hwmic logicaldisk get size,freespace,captionGet-PSDriveDisk usage info
free -hsysteminfoGet-ComputerInfoMemory info
sudo apt update(n/a)winget upgradeUpdate packages
apt install curl(n/a)winget install curlInstall software
sha256sum file.isocertutil -hashfile file.iso SHA256Get-FileHashCheck SHA256 hash
ping example.comping example.comTest-Connection example.comPing a host
ip aipconfigGet-NetIPConfigurationIP/network info