Windows Command Line Cheat Sheet

A Software › Windows cheat sheet in English by ludovico14

A brief list of commands for Windows console.

7,053 views 794 downloads 25 Jan 2025 History

Files & Direct­ories

cd $path
Change current working directory
cd ..
Go to parent directory
$disk:
Change disk unit
dir
List files and direct­ories in cwd
tree
Show hierar­chical structure of cwd
mkdir $path
Create directory
copy $file $path
Copy file
ren $old $new
Rename file/d­ire­ctory
del $file
Delete file

System

help $cmd
Show guide for command
$cmd /?
Show command options
systeminfo
Show info from SO, hardware, storage, etc.
hostname
Show host name
ver
Show SO version
tasklist
Show running processes
chkdisk
Show disk status (*adm.)
sfc /scannow
Look for corrupted files & fix them (*adm.)
diskpart
Manage disk units, partit­ions, etc.
assoc
Show extens­ion­-pr­ogram relati­onships
cls
Clear console

Network

ipconfig /all
Show detailed network inform­ation
ping $ip
Check connec­tivity with IP address
nslookup $host
Show host IP address and FQDN
netstat -a
Show port status
telnet $host $port
Check host port status

Comments

No comments yet.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.