Microsoft cmd commands


ftp – transfer files to a FTP server
ftype – display file type and mapping
getmac – display MAC address
ipconfig – display IP network settings
netsh – configure/control/display network components
netstat – display TCP/IP connections and status
nslookup – query the DNS
pathping – test the connection to a specific IP address
ping – pings the network
route – display network routing table, add static routes
systeminfo – displays computer-specific properties and configurations
telnet – establish Telnet connection
tftp – transfer files to a TFTP server
tracert – trace routes similar to patchping

System Info

call – calls a batch file from another one
cd – change directory
cls – clear screen
date – show/set date
dir – list directory content
echo – text output
exit – exits the cmd or a batch file
find – find files
hostname – display host name
pause – pause the execution of a batch file and show a message
runas – start a program as another user
shutdown – shutdown
sort – sort the screen output
start – start a new window to execute a prog or cmd
taskkill – terminate a process or a application
tasklist – display applications and related tasks
time – display/edit the system time
ver – display operating system version

Files & disks

attrib – display file attributes
chkdsk – check volumes
chkntfs – display/change volume check at startup
comp – compare file contents
compact – display/change file compression
copy – copy files
defrag – defragment media
del – delete file
diskcomp – compare content of two floppy disks
diskcopy – copy floppy disc to another one
diskpart – volume management
driverquery – display installed devices and their properties
erase – delete one or more files
expand – extract files
fc – compare files and display the differences
format – format volumes
label – change volume name
mkdir – create a new directory
mode – configure interfaces/devices
mountvol – assign/delete drive mountpoints
move – move/rename files
rd – delete directory
rename – rename files
replace – replace files
rmdir – delete directory
tree – display folder structure graphically
type – display content of text files
verify – monitoring whether volumes are written correctly
vol – show volume description and serial numbers of the HDDs
xcopy – copy files


for – for loop
gpresult – display group policies
gpupdate – update group policies
perfmon – start performance monitor
prompt – change command prompt