What is Command Prompt?
The command prompt, also known as CMD, is a command-line interpreter that is available for the Windows operating system. You can easily perform a variety of tasks using CMD. Programmers use command prompt to set up a project file and run different functions. The CMD uses to execute a variety of commands, like automating scripts or finding batch files, and its uses to find and fix your Windows errors.
This article lists all basic to advanced CMD commands that you can use to simplify your work. First, you can try to learn all basic cmd commands then you go through advanced stuff.
Basic CMD Commands
Command | Description |
---|---|
cd | change directory |
Prompt | Customize the appearance of the prompt text |
Rmdir | Delete the folder |
Time | To See & Change Current Time |
Cmd | Open Command Prompt |
Color | To Change prompt background and text color |
Del | Deletes one or more files. |
dir | Displays a list of files and subdirectories in a directory. |
echo | Displays messages, or turns command echoing on or off. |
exit | Quits the CMD. |
find | Searches for a text string in a file or files. |
Help | Provides Help information for Windows commands. |
Pause | Suspends processing of a batch file and displays a message. |
sort | Sorts input. |
Shutdown | Allows proper local or remote shutdown of the machine. |
Help | Starts a separate window to run a specified program or command. |
systeminfo | Displays machine-specific properties and configuration. |
taskkill | Kill or stop a running process or application. |
Title | Sets the window title for a CMD.EXE session. |
Attrib +h +s +r | To displays or changes the file or folder |
ver | Displays the Windows version. |
Tasklist | Displays all currently running tasks including services. |
Rename | Renames a file or files. |
Replace | Replaces files. |
RD | Removes a directory. |
Copy | Copies one or more files to another location. |
Driverquery | Displays current device driver status and properties. |
Label | Creates, changes, or deletes the volume label of a disk. |
Cacls | Displays or modifies access control lists (ACLs) of files |
Xcopy | Copies files and directory trees. |
Wmic | Displays WMI information inside interactive command shell. |
Vol | Displays a disk volume label and serial number. |
Verify | Tells Windows whether to verify that your files are written correctly to a disk. |
Tree | Graphically displays the directory structure of a drive or path. |
Recover | Recovers readable information from a bad or defective disk. |
Network Commands
Command | Description |
---|---|
Ping | Pings the network |
Ipconfig | Display all IP networks |
Tracert | To find the exact route taken to reach the server |
getmac | To display mac addresses for each network adapter |
nslookup | To get information from the DNS server |
Netstat | Display IP/TCP connections and status |
FTP | Transfer files to an FTP server |
SSH | To provide secure connections between two hosts |
hostname | To find hostname |
Arp -a | To display the address resolution cache |
ftype | Display file type and an executable program. |
Netsh | Display the network configuration of a computer |
Route | Display network routing tables |
Net user | Display all user account on your machine |
Net | Displaying available Net switches |
Pathping | Troubleshooting network connection issues. |
Net View | Viewing devices connected to a network |