Basic Windows Commands

Explore the essential Windows commands that can help you with system configuration, troubleshooting, and gathering information.

CommandDescription
dirLists files and directories in the current directory.
cdChanges the current directory.
mkdirCreates a new directory.
rmdirDeletes a directory (must be empty).
delDeletes one or more files.
copyCopies files from one location to another.
moveMoves files from one location to another.
clsClears the Command Prompt screen.
exitCloses the Command Prompt window.
ipconfigDisplays network configuration information.
pingTests connectivity to another network host.
tasklistLists currently running processes.
taskkillEnds a process by its PID or name.
systeminfoDisplays detailed configuration information about the computer.
chkdskChecks the disk for errors.
echoDisplays messages or turns command echoing on or off.
setDisplays, sets, or removes environment variables.
copy conCreates a new text file and allows you to enter text directly.
typeDisplays the contents of a text file.
rename (or ren)Renames a file or directory.
attribDisplays or changes file attributes.
netstatDisplays active network connections and listening ports.
tracertTraces the route to a network host.
nslookupQueries DNS to find the IP address of a domain.
sfcScans and repairs system files.
diskpartDisk partitioning utility.
shutdownShuts down or restarts the computer.
powershellLaunches Windows PowerShell.
wmicWindows Management Instrumentation command-line utility.
get-helpProvides help on commands in PowerShell.
mdCreates a new directory.
rmdir /sDeletes a directory and all its contents.
findSearches for a specific text string in a file.
fcCompares two files and displays the differences.
xcopyCopies files and directories, including subdirectories.
robocopyA more advanced file copy command.
systeminfoDisplays detailed system and OS configuration.
hostnameDisplays the name of the computer.
verDisplays the Windows version.
chkdsk /fFixes disk errors on the specified volume.
gpupdateRefreshes Group Policy settings.
whoamiDisplays the current user name.
setxSets environment variables permanently.
robocopy /mirMirrors a directory tree.
taskschd.mscOpens the Task Scheduler GUI.
shutdown /hPuts the computer into hibernation.
net userManages user accounts.
routeDisplays or modifies the routing table.
scManages Windows services.
cipherManages file encryption on NTFS volumes.

Leave a Reply

Your email address will not be published. Required fields are marked *