Command line tools (Windows) Flashcards
(23 cards)
cd
Changes the current directory (folder) you’re working in
dir
Lists files and folders in the current directory
ipconfig
Displays IP address, subnet mask, and gateway for all adapters
ping
Tests network connectivity between devices
netstat
Shows active network connections and listening ports
nslookup
Queries DNS to get IP address info for domain names
net use
Maps or disconnects shared network drives/resources
tracert
Traces the route packets take to a destination (shows hops)
pathping
Combines “ping” and “tracert” to analyze packet loss at each hop
chkdsk
Scans and repairs disk errors (file system and bad sectors)
format
Formats a disk for use with Windows (erases everything)
diskpart
Opens a disk partitioning tool to manage drives
md
Creates a new directory (same as “mkdir”)
rmdir
Deletes an empty directory
robocopy
Advanced file copy tool with retry, sync, and mirror options
hostname
Displays the name of the current computer
net user
Displays or modifies user account information
winver
Shows Windows version and build info
whoami
Displays the current use account you’re logged in as
[command] /?
Shows help or syntax info for any command (e.g., “ping /?”)
gpupdate
Forces an immediate Group Policy update
gpresult
Displays Group Policy settings for a user/computer
sfc
Scans and repairs corrupted system files (“sfc /scannow”)