Blogs about: Microsoft Teams, backgrounds, Intune, OneDrive, Exchange, Azure AD, Windows 10, Security, Tenant, Exchange, best-practice, tips and & tricks

🤖 These are the most commonly used CMD commands for Windows systems

What is CMD?

CMD is an acronym for Command. Command Prompt, or CMD, is the command line interpreter of Windows operating systems. It is similar to Command.com used in DOS called "MS-DOS Prompt."

Command Prompt uses the command line interface to communicate with the user. In the Windows operating system, this command prompt interface is implemented through the Win32 console.

In this blog, you can find the most commonly used and popular CMD commands for Windows systems.

Starting CMD in Windows

The user can open the interface via the CMD run command or by going to the original location C:【cmd.exe.

Or you can press Window key+R and then press CMD.

The most commonly used CMD commands

callcalls a batch file from another one
CDchange directory
clsclear screen
cmdstart command prompt
colorchange console color
dateshow/set date
dirlist directory content
echotext output
exitexits the command prompt or a batch file
findfind files
hostnamedisplay host name
pausepauses the execution of a batch file and shows a message
runasstart a program as another user
shutdownshutdown the computer
sortsort the screen output
startstart an own window to execute a program or command
taskkillterminate a process or an application
tasklistdisplay applications and related tasks
timedisplay/edit the system time
timeoutwait any time
titleset title for prompt
fardisplay operating system version
w32tmsetting time synchronization/time server/time zone

Network CMD commands

ftptransfer files to an FTP server
ftypedisplay file type and mapping
getmacdisplay MAC address
ipconfigdisplay IP network settings
netshconfigure/control/display network components
netstatdisplay TCP/IP connections and status
nslookupquery the DNS
pathpingtest the connection to a specific IP address
pingpings the network
routedisplay network routing table, add static routes
systeminfodisplays computer-specific properties and configurations
telnetestablish Telnet connection
tftptransfer files to a TFTP server
tracerttrace routes similar to patchping

Files CMD commands

attribdisplay file attributes
compcompare file contents
compactdisplay/change file compression
copy / xcopycopy files
diskcompcompare content of two floppy disks
diskcopycopy floppy disc to another one
erase / deldelete one or more files
expandextract files
fccopare files and display the differences
mkdircreate a new directory
movemove/rename files
renamerename files
replacereplace files
rmdir / rddelete directory
treedisplay folder structure graphically
typedisplay content of text files

Media commands

chkdskcheck volumes
chkntfsdisplay/change volume check at startup
defragdefragment media
diskpartvolume management
driverquerydisplay installed devices and their properties
formatformat volumes
Tagchange volume name
fashionconfigure interfaces/devices
mountvolassign/delete drive mountpoints
verifymonitoring whether volumes are written correctly
fullshow volume description and serial numbers of the HDDs

Also read

Manage Microsoft Office 365 with PowerShell - Starter's Guide
How to install Azure AD preview module with PowerShell?
How to shut down, reboot or put a Windows 11 PC into hibernate
How to install the new Exchange Online PowerShell V2 module ?
How to log in with Multi-factor Authentication on the Exchange Online PowerShell module?

0 0 vote
Article review
Please let us know if there are

Inline feedbacks
See all comments
Would love to know your thoughts, please leave a comment.x