CMD Simulator

Windows Commands Reference

Comprehensive documentation for 200+ Windows commands

Command Categories

File Management

attribcdwherechdirpushdpopdcopydel+23 more

Networking

ipconfigpingnetstattracertnslookuparproutepathping+6 more

Process Management

tasklisttaskkillwmicscschtasksatstart

System Information

systeminfoverdatetimehostnamewhoamichkdsksfc+16 more

Disk Management

chkdskdefragdiskpartconvertlabelfsutilsubst

File System

assocattribciphercompactftypefsutilmklink

User Management

net usernet localgroupwhoamirunastakeownicacls

Advanced System Tools

powershellsfcdismbcdeditdiskpartrobocopywmicreg+6 more

Help and Documentation

help

File Management

attrib

Displays or changes file attributes (read-only, archive, system, and hidden).

Example:

attrib +r +h filename.txt

cd

Changes the current directory or displays the current directory path.

Example:

cd C:\Users\Username\Documents

where

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

where /?

chdir

Changes the current directory or displays the current directory path (same as CD).

Example:

chdir C:\Program Files

pushd

Saves the current directory and changes to the specified path for use with POPD.

Example:

pushd C:\Windows\System32

popd

Restores the previous directory saved by the most recent PUSHD command.

Example:

popd

copy

Copies one or more files to another location.

Example:

copy source.txt destination.txt

del

Deletes one or more files.

Example:

del filename.txt

dir

Displays a list of files and subdirectories in a directory.

Example:

dir /a /s

erase

Deletes one or more files (same as DEL).

Example:

erase oldfile.txt

mkdir

Creates a directory or subdirectory.

Example:

mkdir new_directory

move

Moves one or more files from one directory to another.

Example:

move file.txt C:\Destination

rename

Renames a file or files.

Example:

rename oldname.txt newname.txt

rmdir

Removes a directory.

Example:

rmdir /s /q directory_name

type

Displays the contents of a text file.

Example:

type readme.txt

robocopy

Robust file copy utility for reliable copying of files and directories.

Example:

robocopy C:\Source D:\Destination /E

xcopy

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

xcopy /?

comp

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

comp /?

compact

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

compact /?

fc

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

fc /?

find

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

find /?

findstr

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

findstr /?

more

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

more /?

echo

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

echo /?

ren

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

ren /?

tree

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

tree /?

vol

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

vol /?

sort

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

sort /?

forfiles

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

forfiles /?

replace

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

replace /?

expand

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

expand /?

Networking

ipconfig

Displays all current TCP/IP network configuration values.

Example:

ipconfig /all

ping

Tests a network connection by sending ICMP echo request packets.

Example:

ping www.example.com -t

netstat

Displays active TCP connections, ports, and network statistics.

Example:

netstat -ano

tracert

Traces the route taken by packets to reach a destination.

Example:

tracert www.example.com

nslookup

Queries DNS servers for domain name or IP address mapping information.

Example:

nslookup example.com

arp

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

arp /?

route

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

route /?

pathping

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

pathping /?

nbtstat

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

nbtstat /?

netsh

Network shell for configuration and monitoring of Windows networking components.

Example:

netsh wlan show networks

getmac

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

getmac /?

hostname

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

hostname /?

net share

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

net share /?

net view

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

net view /?

Process Management

tasklist

Displays a list of currently running processes.

Example:

tasklist | findstr chrome

taskkill

Terminates one or more running processes.

Example:

taskkill /IM notepad.exe /F

wmic

Windows Management Instrumentation Command-line for system management.

Example:

wmic os get version

sc

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

sc /?

schtasks

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

schtasks /?

at

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

at /?

start

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

start /?

System Information

systeminfo

Displays detailed configuration information about the computer and operating system.

Example:

systeminfo | findstr /B /C:"OS Name" /C:"OS Version"

ver

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

ver /?

date

Displays or sets the system date.

Example:

date /t

time

Displays or sets the system time.

Example:

time /t

hostname

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

hostname /?

whoami

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

whoami /?

chkdsk

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

chkdsk /?

sfc

System File Checker - scans and verifies the integrity of all protected system files.

Example:

sfc /scannow

dism

Deployment Image Servicing and Management tool for Windows images.

Example:

dism /Online /Cleanup-Image /RestoreHealth

config

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

config /?

cls

Clears the command prompt window.

Example:

cls

path

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

path /?

exit

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

exit /?

timeout

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

timeout /?

shutdown

Shuts down or restarts the computer.

Example:

shutdown /s /t 60

color

Sets the console foreground and background colors using hex color codes.

Example:

color 0A

title

Sets the title for the command prompt window.

Example:

title Backup Script

set

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

set /?

clip

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

clip /?

driverquery

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

driverquery /?

prompt

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

prompt /?

choice

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

choice /?

doskey

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

doskey /?

verify

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

verify /?

Disk Management

chkdsk

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

chkdsk /?

defrag

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

defrag /?

diskpart

Disk partition management tool for managing disks, partitions, and volumes.

Example:

diskpart (then: list disk)

convert

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

convert /?

label

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

label /?

fsutil

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

fsutil /?

subst

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

subst /?

File System

assoc

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

assoc /?

attrib

Displays or changes file attributes (read-only, archive, system, and hidden).

Example:

attrib +r +h filename.txt

cipher

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

cipher /?

compact

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

compact /?

ftype

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

ftype /?

fsutil

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

fsutil /?

mklink

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

mklink /?

User Management

net user

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

net user /?

net localgroup

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

net localgroup /?

whoami

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

whoami /?

runas

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

runas /?

takeown

Takes ownership of a file or directory, allowing administrators to access protected files.

Example:

takeown /f C:\important-file.txt

icacls

Displays or modifies Access Control Lists (ACLs) for files and folders.

Example:

icacls C:\Data /grant User:F

Advanced System Tools

powershell

Starts Windows PowerShell, a powerful scripting environment and command-line shell.

Example:

powershell -NoProfile -ExecutionPolicy Bypass

sfc

System File Checker - scans and verifies the integrity of all protected system files.

Example:

sfc /scannow

dism

Deployment Image Servicing and Management tool for Windows images.

Example:

dism /Online /Cleanup-Image /RestoreHealth

bcdedit

Boot Configuration Data store editor for managing boot options.

Example:

bcdedit /set {default} bootmenupolicy legacy

diskpart

Disk partition management tool for managing disks, partitions, and volumes.

Example:

diskpart (then: list disk)

robocopy

Robust file copy utility for reliable copying of files and directories.

Example:

robocopy C:\Source D:\Destination /E

wmic

Windows Management Instrumentation Command-line for system management.

Example:

wmic os get version

reg

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

reg /?

netsh

Network shell for configuration and monitoring of Windows networking components.

Example:

netsh wlan show networks

takeown

Takes ownership of a file or directory, allowing administrators to access protected files.

Example:

takeown /f C:\important-file.txt

icacls

Displays or modifies Access Control Lists (ACLs) for files and folders.

Example:

icacls C:\Data /grant User:F

mklink

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

mklink /?

gpupdate

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

gpupdate /?

gpresult

Windows command line tool. Use with appropriate parameters for specific operations.

Example:

gpresult /?

Help and Documentation

help

Provides help information for Windows commands.

Example:

help dir