Windows Commands Flashcards
cd/chdir
Change working directory. Use backslash to specify the directory.
dir
List files and directories.
md/mkdir
Make directory
rd/rmdir
Remove directory
C:
Moves to specified drive. Can be combined with backslashes and folder names to navigate to a specific folder
ipconfig
Determines TCP/IP and network adapter information, along with additional IP details. Can also view additional config details like DNS servers, DHCP servers, etc.
ping
Test reachability. Determines round-trip time using Internet Control Message Protocol.
hostname
Shows name of device, which can be changed in System Settings.
netstat
Shows network statistics.
Netstat -a shows all active connections
Netstat -b shows binaries and requires elevation
Netstat -n does not resolve usernames.
nslookup
Lookup information from DNS servers like canonical names, IP addresses, cache timers, etc.
chkdsk
Scans for and repairs errors in the hard drive.
net user
View user account information and reset passwords.
Net User <username></username>
Net User <username> * /domain</username>
net use
Maps a share to a drive letter following the format:
“\<servername>\<sharename>”</sharename></servername>
tracert
Determines the route a packet takes to a destination. Uses Time to Live to measure number of hops between devices. Sometimes filtered by firewalls and often low priority.
format
Formats a disk in FAT32.
xcopy
Copies files and directory trees
robocopy
Better version of xcopy that can survive a broken connection, change the amount of bandwidth, and time of transfer.
gpupdate
Forces a group policy update without needing to login or out.
gpupdate /target:{computer|user} /force
gpupdate /target:user /force
gpresult
Verify policy settings for a computer or user
gpresult /r
gpresult /user sgc/[user] /v
shutdown
Shuts down (and restarts).
Shutdown /s /t nn
Wait nn seconds, then shutdown
Shutdown /r /t nn
Shutdown and restart after nn seconds
Shutdown /a
sfc
Checks and repairs the integrity of system files
[command name] /?
Shows information about command
diskpart
Manages disc configuration
pathping
Combination of ping and tracert. It runs tracert to map the network, and then measures round trip time and packet loss between each hop like ping.
winver
Shows the version of Windows