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
Logoff the current user on the local or remote computer, or shut down the computer.
shutdown
Repair your Windows installation. The bootrec tool can troubleshoot and repair the master boot record (MBR), the boot sector, and boot configuration data. You’ll need to boot the computer from the Windows installation disk to access this utility.
bootrec.exe
Lists, creates, and removes network shares on the local computer.
Net Share
Displays or connects to shares on remote computers
Net Use
Adds, removes, and otherwise manages user accounts on the computer
Net User
Lists computers and devices on the network
Net View
Shows or closes open files on a server
Net File
Lists or ends communication sessions with network computers
Net Sessions
Sets logon and password requirements for users
Net Accounts
Adds or removes a computer from a domain
Net Computer
Starts a Windows service
Net Start
Stops a Windows service
Net Stop
Pauses a Windows service
Net Pause
Continues a Windows service
Net Continue