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.