Windows Commands Flashcards
Display a list of available commands and their descriptions.
help
Display a description of a specific command.
help commandname
Display a command’s syntax and parameters/options
command/?
Clear the command-prompt window.
cls
Close the command-prompt window.
exit
View the contents of a directory (known as a folder in the Windows interface).
dir
Create a directory.
md
Change from one directory to another.
cd
Delete (remove) a directory.
rd
Delete files.
del
Copy files from one location to another.
copy
Copy files, directories, and subdirectories.
xcopy
Copy files and directories. This command was introduced in Windows Vista and provides a more robust tool to replace xcopy.
robocopy
Extract files from a cabinet file, which have a .cab file extension.
extract
In Windows Vista, expands one or more compressed update files.
expand
Create partitions on a hard disk.
diskpart
Check your hard disk for corrupt files and repair them. The sfc command runs the System File Checker.
sfc
Repair Windows images, Windows Setup, and Windows PE. You can use the dism command when sfc is unable to repair corrupted files.
dism
Check a hard disk for file system errors and repair them. It also checks the disk surface for bad sectors. You can schedule chkdsk to run at regular intervals as part of a disk maintenance routine using tools such as Task Scheduler or third-party scheduling tools. In Windows 8 and Windows 8.1, chkdsk is scheduled to run at regular intervals in Task Scheduler.
chkdsk
Format partitions on a hard disk.
format
Refresh Group Policy settings, both local settings and those applied at the domain level in Active Directory.
gpupdate
Display the Resultant Set of Policy information for a specific computer or user account. You can use this command and gpupdate to troubleshoot the application of Group Policy settings for users and computers.
gpresult
Display a list of processes running on your computer to troubleshoot system issues.
tasklist
Stop a process on your computer if you think it is interfering with the system.
taskkill