cd / Set-LocationFiles and foldersChange folder
cd C:\Users\Alice\DocumentsCMDGo to a folder
cd ..CMDGo up one level
Windows command glossary
A plain-English glossary of the commands you use in Windows Command Prompt and PowerShell, including the built-in OpenSSH client. Every command has a short explanation and copy-ready examples.
Type these in Command Prompt (CMD) or PowerShell. Lines marked PowerShell only work in PowerShell.
New: the ssh command explained — syntax, options, keys, tunnels and error fixes →
If you only learn a few, learn these. Click a command name for every example and option in its category.
cd / Set-LocationFiles and foldersChange folder
cd C:\Users\Alice\DocumentsCMDGo to a folder
cd ..CMDGo up one level
dir / Get-ChildItemFiles and foldersList files and folders
dirCMDList the current folder
dir /aCMDInclude hidden files
pwd / Get-LocationFiles and foldersShow the current folder
cdCMDIn CMD, typing cd alone prints the current folder
Get-LocationPowerShellPrint the current folder (alias: pwd)
mkdir / New-ItemFiles and foldersCreate a folder
mkdir ReportsCMDCreate a folder
mkdir Reports\2026\OctoberCMDCMD creates the whole chain automatically
rmdir / Remove-ItemFiles and foldersDelete a folder
rmdir EmptyFolderCMDRemove an empty folder
rmdir /s /q OldBuildCMDRemove a folder and everything in it without asking
copy / xcopy / robocopyFiles and foldersCopy files
copy report.docx D:\Backup\CMDCopy a file
xcopy Photos D:\Backup\Photos /E /ICMDCopy a folder with sub-folders
move / renFiles and foldersMove or rename
move report.docx D:\Archive\CMDMove a file
ren notes.txt notes-old.txtCMDRename a file
type / Get-ContentFiles and foldersShow a file
type notes.txtCMDPrint the file
more notes.txtCMDPrint one page at a time (Space for next page)
findstr / Select-StringSearch and filterSearch for text in files
findstr /i "error" app.logCMDCase-insensitive search
findstr /s /n "TODO" *.csCMDSearch sub-folders and show line numbers
where / Get-CommandSearch and filterFind a program
where pythonCMDPrints each place the program is found
Get-Command pythonPowerShellSame in PowerShell
icaclsPermissions and administratorView and change permissions
icacls C:\DataCMDShow who may do what
icacls C:\Data /grant Alice:(OI)(CI)MCMDGive Alice Modify rights to the folder and everything in it
whoamiPermissions and administratorWho am I?
whoamiCMDShow DOMAIN\user
whoami /groupsCMDThe groups you belong to
tasklist / Get-ProcessProcesses and servicesList running programs
tasklistCMDEvery process
tasklist | findstr chromeCMDFind one program
taskkill / Stop-ProcessProcesses and servicesStop a program
taskkill /PID 1234CMDStop by process number
taskkill /IM notepad.exe /FCMDForce-stop by name
sc / Get-ServiceProcesses and servicesManage services
sc queryCMDList services
sc query SpoolerCMDOne service
schtasksProcesses and servicesScheduled tasks
schtasks /queryCMDList tasks
schtasks /create /tn "Backup" /tr "C:\scripts\backup.bat" /sc daily /st 02:00CMDRun every day at 02:00
systeminfoSystem informationFull system report
systeminfoCMDOS version, memory, hotfixes and network cards
systeminfo | findstr /B /C:"OS"CMDOnly the OS lines
ipconfigNetworkingNetwork addresses
ipconfigCMDAddresses and gateway
ipconfig /allCMDEverything including MAC address and DNS servers
pingNetworkingTest if a host answers
ping example.comCMDFour packets
ping -n 10 example.comCMDTen packets
netstatNetworkingConnections and ports
netstat -anoCMDAll connections with the owning process number
netstat -ano | findstr :443CMDWho uses port 443
Test-NetConnectionNetworkingTest a port
Test-NetConnection example.com -Port 443PowerShellIs the port reachable?
Test-NetConnection 203.0.113.10 -Port 22PowerShellCheck that SSH is reachable
sshSSH and file transferLog in to a server
ssh deploy@203.0.113.10CMDLog in as deploy
ssh -p 2222 deploy@example.comCMDDifferent port
ssh-keygenSSH and file transferMake a key pair
ssh-keygen -t ed25519 -C "me@example.com"CMDCreate a key; it is saved in C:\Users\you\.ssh
ssh-keygen -lf %USERPROFILE%\.ssh\id_ed25519.pubCMDShow the fingerprint
scpSSH and file transferCopy files over SSH
scp report.pdf deploy@example.com:/home/deploy/CMDUpload
scp deploy@example.com:/var/log/app.log .CMDDownload
tarArchives and compressionPack and unpack tar files
tar -czvf backup.tar.gz DataCMDCreate a compressed archive (tar ships with Windows 10 and 11)
tar -xzvf backup.tar.gzCMDExtract it
Compress-Archive / Expand-ArchiveArchives and compressionZip files
Compress-Archive -Path Data -DestinationPath data.zipPowerShellCreate a zip
Expand-Archive data.zip -DestinationPath C:\RestorePowerShellUnzip into a folder
wingetInstalling softwareWindows Package Manager
winget search vscodeCMDSearch
winget install Microsoft.VisualStudioCodeCMDInstall
echoShell basics and scriptingPrint text
echo HelloCMDPrint a line
echo %USERNAME%CMDPrint a variable in CMD
help / Get-HelpShell basics and scriptingRead the help
helpCMDList built-in commands
dir /?CMDHelp for one command
Move around, create, copy, rename and delete files and folders in Command Prompt (CMD) and PowerShell.
Find files and text, and shape output.
Control who may use a file, and run things as the administrator.
See what is running, stop what is stuck and manage services.
Check free space, find big folders and check disks.
Find out which Windows and which machine you are on.
Check addresses, DNS, ports and connectivity.
Windows 10 and 11 include the OpenSSH client, so these commands work in CMD and PowerShell, just like on Linux.
Pack and unpack files.
Install and update programs with winget and other tools.
Small commands that make the window faster, and the first steps of scripts.
SSH Command is a desktop app for Mac, Windows and Linux that puts a real terminal, SFTP file panes, a sudo switch and a searchable Linux command finder in one window. Type what you want to do, and send the command to your server with one click.
Download free Linux commands with examples SFTP & FTP client
Yes. Windows 10 and 11 include the OpenSSH client. Open Command Prompt or PowerShell and type ssh user@host. If it says the command is not found, add OpenSSH Client under Settings → Apps → Optional features.
Command Prompt (CMD) is the classic text window with short commands like dir and copy. PowerShell is newer and more powerful: its commands are named like Get-ChildItem and pass objects, not just text. Many CMD commands also work inside PowerShell.
Click Start, type cmd or powershell, right-click the result and choose Run as administrator. Some commands (changing services, firewall rules, disks) only work there.
Use scp file.zip user@host:/path/ or sftp user@host in PowerShell, or drag and drop in SSH Command's file panes, which also show the progress and ask before overwriting.
Some are: ssh, scp, sftp, curl and tar ship with Windows 10 and 11. For a full Linux shell use WSL (Windows Subsystem for Linux), or log in to a Linux server with SSH.