Section 1.2 -- Windows Commands Flashcards
(22 cards)
What command get you more info about other commands?
Help or /?
e.g. type “Help copy” or “copy /?”
How do you clear the screen?
cls
How do you list files and directories?
dir
How do you change directories?
Cd or chdir changes to a different directory. Use backslash to specify volume name or .. to move to a higher level in the file tree.
How do you make, change, or remove directories?
Mkdir, chdir, rmdir OR md/cd/rd
How do you view the name of the device you’re working on?
hostname
How do you format a drive?
format – BACKUP FIRST
What are variants of the copy command?
Copy
/v – verifies that copied files are formatted correctly
/y – overrides prompts
How do you copy every subfolder under the current directory?
xcopy /s
How do you use xcopy /s?
xcopy/s [folder] [destination]
What is an improved version of the copy command?
Robocopy. It allows you to…
copy subs but not empty ones, move files and delete from source, copy for compatibility with older OSes, wait for free bandwidth on slow lines, only copy files during certain time of day, begin copy and wait until connectivity is restored, etc. etc.
Name variants of the shutdown command
Shutdown
Shutdown /s /t nn – shutdown after a certain number of seconds
Shutdown /r /t nn – shutdown and restart after nn seconds
Shutdown /a – abort shutdown
How do you create partitions from an available disk?
diskpart
How do you get the version of Windows on your local system?
winver
What are the group policy commands?
gpupdate – forces a group policy update without going through the login process
gpresult – verifies group policy settings for a given device
gpresult /r – shows you all the AD settings and configurations
gpresult /force – applies all policy updates
What’s the best command to start troubleshooting the network?
ipconfig or ipconfig/all – these show:
Adapter info, IP info, network configuration, DNS, DHCP server, hostname, IP address, subnet mask, and more.
How do you test reachability?
Use the ping command. Look for four pings with equal amounts of data to indicate a healthy ping.
How do you collect network statistics?
netstat
netstat -a lets you see all active devices
netstat -b lets you see application traffic
How do you look up IP addresses from a named server?
nslookup
How do you find and manage shares on a server?
Net
Net view [address] lets you see shares on a server
net use [directory] lets you see into a directory on a share
How do you determine the route a packet takes to a destination?
Tracert. Uses the TTL exceeded error message to measure hops inside and outside the network. Using this inside your network shows you if your routing tables are correct. Using this outside the network shows you a possible error location if the number of hops changes.
What command combines tracert with ping?
Pathping. First shows tracert data, then collects data for 200 seconds. Provides full summary of communication – ms, packet loss, loss/sent ratio, IP addresses.