Command collection in CMD

CMD stands for Command Prompt and is a standard Windows program that has existed since the beginning of this operating system. Before there was a GUI, Windows could only be run through commands or comments with a black screen and white text.

In addition to time and technological sophistication, there is a GUI in the form of menus that can be clicked on with the mouse to make it easier for users to operate their computer. For those of you who would like to learn about the command set in CMD, please have a look at the following set of CMD commands.

Command collection in CMD Window OS


ARP: address resolution protocol

Assoc: Change association file extension

ASSOCIAT: file association in one step

Attrib: Change file attributes


Bootcfg: Edit Windows startup settings

BROWSTAT: Get domain, browser info and PDC


CACLS: Change file permissions

CALL: Calling one batch program to another

CD: Change directory – move to a specific folder

Change: Change the properties of the terminal server session

CHKDSK: Check Disk – checks and fixes hard drive problems

CHKNTFS: Check NTFS file system

CHOICE: Accepts keystrokes in a batch file

CIPHER: Encrypt or decrypt files / folders

CleanMgr: Automatically cleans temperature files, trash

CLEARMEM: remove memory leak

CLIP: Copy STDIN to the Windows clipboard.

CLS: clear screen (clear screen)

CLUSTER: Windows clustering

CMD: Start a new CMD shell

COLOR: Change the color of the CMD window

COMP: Compares the contents of two files or sets of files

COMPACT: Compress files or folders on an NTFS partition

Compress: Compress a single file on an NTFS partition

CON2PRT: Establish or disconnect the connection to the printer

CONVERT: Convert FAT to NTFS drive

COPY: Copy one or more files to another location

CSCcmd: client-side caching (offline files)

CSVDE: Import or export Active Directory data


DATE: View or set the date

Defrag: Defragment the hard disk

DEL: Delete one or more files

DELPROF: delete NT user profile

DELTREE: Delete the folder and all subfolders

DevCon: command line utility for device manager

DIR: Displays a list of files and folders

DIRUSE: Show hard disk usage

DISKCOMP: Compare the contents of two floppy disks

Diskcopy: Copy the contents of one disk onto another

DISKPART: management disk

DNSSTAT: DNS statistics

DOSKEY: edit command line, memorize commands and create macros

DSADD: Add user (computer, group …) to the Active Directory

DSQUERY: List of elements in the Active Directory

DSMOD: Change user (computer, group …) in the Active Directory

DSRM: Remove items from Active Directory


ECHO: Display the message on the screen

ENDLOCAL: End of changes to the localization environment in the batch file

ERASE: Erase one or more files

EVENTCREATE: Add message to Windows event log

EXIT: Terminates the current script / routine and sets the error level

EXPAND: decompress files

Extract: Decompress the CAB file


FC: Compare two files

FIND: Search for text strings in a file

FINDSTR: Search string in file

FOR / F: repetition of commands for a series of files

FOR / F: Repetition of the command against the results of another command

FOR: repeats the command for all options files, directory, list

FORFILES: batch processing of multiple files

FORMAT: Format hard disk

FREEDISK: Check the remaining free space (in bytes)

FSUTIL: File and Volume Utility

FTP: file transfer protocol

FTYPE: View or change the file types used in file extension associations


GLOBAL: Show global group membership

GOTO: Instruct a batch program to jump to the line with the label

GPUPDATE: Update group policy settings


HELP: Online help


ICACLS: Change file and folder permissions

IF: execute command conditionally

IFMEMBER: Is the user currently in an NT workgroup

IPCONFIG: Configure IP


KILL: remove program from memory


LABEL: Edit volume label

LOCAL: Show membership in local groups

LOGEVENT: Write text to the NT Event Viewer

Log off: Log off user

LOGTIME: Log the date and time in a file


MAPISEND: Send email from the command line

MBSAcli: Baseline Security Analyzer

MEM: Show memory usage

MD: Create a new folder

MKLINK: create a symbolic link (linkd)

MODE: Configure system device

MORE: View output one screen at a time

MOUNTVOL: Manage mount point volumes

MOVE: Move files from one folder to another

MOVEUSER: Move users from one domain to another

MSG: Send message or message

MSIEXEC: Microsoft Windows Installer

MSINFO: Windows NT Diagnostics

MSTSC: Terminal Server Connection (Remote Desktop Protocol)

MUNGE: Find and replace text in file (s)

MV: Copy the file used


NET: Manage network resources

NETDOM: Domain Manager

Netsh: Configuring Network Interfaces, Windows Firewall, and Remote Access

NETSVC: command line service controller

NBTSTAT: Show network statistics (NetBIOS over TCP / IP)

NETSTAT: Show network statistics (TCP / IP)

NOW: Current date and time display

NSLOOKUP: Search for server names

NTBACKUP: Back up folder to tape

NTRIGHTS: edit user account rights


PATH: Displays or sets the search path for executable files

PATHPING: network path tracking plus packet latency and loss

PAUSE: interrupts the processing of batch files and displays messages

perms: Show permissions for users

PERFMON: performance monitor

PING: test network connection

POPD: Returns the previous value of the current directory saved by PUSHD

PORTQRY: Shows the status of ports and services

Powercfg: Configure energy settings

PRINT: Print a text file

PRNCNFG: Display, configure or rename printer

PRNMNGR: Add, remove, list printer, set default printer

PROMPT: Change command prompt

PsExec: remote execution process

PsFile: shows files that have been opened remotely (Remote)

PsGetSid: Shows the SID of a computer or user

PsInfo: List of information about the system

PsKill: Process kills by name or process ID

PsList: List with detailed information on processes

PsLoggedOn: everyone who logs in (locally or via resource sharing)

PsLogList: Log event log

PsPasswd: Change account password

PsService: View and manage services

PsShutdown: Shut down or restart the computer

PsSuspend: Suspend the process

PUSHD: Save the current directory and then change it


QGREP: Search file (s) for lines that match a particular pattern


RASDIAL: Manage RAS connections

RASPHONE: Manage RAS connections

Recover: Repair damaged files from damaged hard drive

REG: Registry = reading, setting, exporting, deleting keys and values

REGEDIT: Import or export registry settings

Regsvr32: Register or deregister a DLL

REGINI: Change registration permissions

REM: Record comments in a batch file

REN: Rename one or more files

REPLACE: Replace or update one file with another

RD: delete folder

RMTSHARE: Share folder or printer

Robocopy: Copy files and folders perfectly

ROUTES: manipulate network routing table

RUNAS: Run the program under a different user account

RUNDLL32: Run the DLL Command (Add / Remove Print Connections)


SC: Service Control

SCHTASKS: Schedule commands to be executed at specific times

SCLIST: Show NT services

SET: Show, set or delete environment variables

SETLOCAL: Control of the visibility of environment variables

SETX: set environment variables permanently

SFC: System File Checker

SHARE: Register or edit file sharing, or share printing

SHIFT: Shift position replaces parameters in a batch file

SHORTCUT: Create link window (. LNK file)

SHOWGRPS: List of NT workgroups that a user has joined

SHOWMBRS: List of users who are members of a workgroup

SHUTDOWN: Shut down the computer

SLEEP: Wait x seconds

SLMGR: Software License Management (Vista / 2008)

SOON: Schedule commands to run in the near future

SORT: Sort input

START: Starts a program or command in a separate window

SU: Change user

SUBINACL: edit files and folders permissions, ownership and domain

SUBST: Link path with drive letter

System info: system configuration list


TASK LIST: List of running applications and services

TASKKILL: Delete running process from memory

TIME: Display or set the system time

TIMEOUT: Delay in processing a batch file

TITLE: Sets the window title for the cmd.exe session

TLIST: To-do list with full path

TOUCH: Replace the timestamp file

Tracert: trace the route to a remote host

TREE: graphic representation of the folder structure

TYPE: Displays the content of the text file


USRSTAT: List of username domains and the last login


VER: Show version information

REVIEW: Make sure the file is saved

VOL: Indicates a disc label


WHERE: Locates and displays files in a directory tree

WHOAMI: Display current user name and domain administration

WINDIFF: Compare the contents of two files or a group of files

WINMSD: Windows system diagnosis

WINMSDP: Windows system diagnosis II

WMIC: WMI command


XCACLS: Change file and folder permissions

XCOPY: Copy files and folders

This is a collection of basic commands and their meanings that you can learn to use CMD in Windows.

Leave a Reply

Your email address will not be published.