Show Menu
Cheatography

Windows Command Line Cheat Sheet by

A brief list of commands for Windows console.

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. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Windows Terminal Cheat Sheet