1102 1.2 Windows Command Line Flashcards
You need to list all files and directories in the current directory.
dir
You need to change to a different directory.
cd or chdir [directory]
You want to create a new directory.
mkdir or md [directory]
You need to delete a directory.
rd or rmdir [directory]
You want to switch from C: drive to D:
D:
You need to view the IP configuration of your computer.
ipconfig
You need to test connectivity to a specific IP address.
ping [ip address]
You want to see your computer’s network name.
hostname
You need to view all network connections and listening ports.
netstat
You need to find the IP address associated with a domain name.
nslookup [domain name]
You suspect a hard drive error and want to check the disk.
chkdsk
You need to view or modify network shares.
net use
You want to trace the route packets take to a network host.
tracert [IP address]
You need to format a disk.
format [drive]:
You want to copy files from one directory to another.
xcopy [source] [destination]