Summary of common Run CMD commands
CMD - Command Prompt is an application used to execute commands available in Windows. CMD in Windows provides a lot of commands, these commands are used to do the job of operating the system from a command prompt interface instead of operating directly on the Windows interface. Here are some common CMD commands out of the many commands that Windows provides.
To open CMD window, you can open the Run dialog box ( Windows + R ) in Start . In the Run dialog box type cmd -> OK (or Enter ).
1. PING command.
Syntax: ping ip / host / [/ t] [/ a] [/ l] [/ n]
- Ip: IP address of the machine to be checked; host is the name of the computer to check the network connection (can use the IP address or the name of the computer).
- / t: used to keep the computer "ping" to the destination computer, press Ctrl + C to stop.
- / a: get the IP address from the computer name (host).
- / l: specify the width of the sending packet to check.
- / n: Specify the number of packets to send.
Use of the PING command: Use the Ping command to check if a computer is connected to the network. The PING command sends packets from your computer to the destination computer, you can determine the connection status or determine whether the computer is connected or not.
2. Tracert command.
Syntax: tracert ip / host
- ip / host: IP address / computer name.
Use the Tracert command: The command helps you see the path of packets from your computer to the destination computer, see which packets go through which servers or routers .
3. Netstat command.
Syntax: Netstat [/ a] [/ e] [/ n]
- / a: Displays all connections and ports that are listening.
- / e: Ethernet statistical information.
- / n: Display the address and port numbers.
You can refer to other parameters by typing Netstat /?
Use Netstat command: List outbound and outbound connections on your computer.
4. Ipconfig command.
Syntax: ipconfig / all
Uses: Display the IP configuration of the computer you are using (host name, IP address, DNS .).
5. Shutdown command.
Syntax (Windows 7):
- Shutdown : Shutdown -s -t [a]
- Start the computer: Shutdown -r -t [a]
+ a: shutdown time (units seconds).
Uses: Turn off and restart the computer.
6. The DIR command.
Syntax: DIR [drive:] [path] [filename]
- Path: Path to file, folder.
- Filename: File name.
Uses of DIR command: View files, folders.
7. DEL command.
Syntax: DEL [/ p] [/ f] [/ s] [/ q] [/ a [[:] attributes]] "file name to delete"
- / p: Display file information before deleting.
- / f: Delete files with read-only attribute.
- / s: Delete the file in all directories that contain it.
- / q: Delete without asking.
- / a [[:] attributes]: Delete by file attributes ( R : Read-only files, S : System files, H : Hidden files).
Delete all files *. *
Uses: Delete files.
8. COPY order.
Syntax: COPY "address to copy" "address of file copy" / y
- / y: Copy without asking.
Uses: Copy files from one folder to another in the computer.
9. RD command.
Syntax: RD / s / q "directory to delete"
- / s: Delete the entire directory.
- / q: Delete without asking.
Uses: The RD command helps you delete directories.
10. MD command.
Syntax: MD "path to save the file to create" "directory name to create"
For example, md "C: Thu" (creates a Thu folder in drive C).
Use: Create a new folder.
11. TASKKILL command.
Syntax: taskkill / f / im "application name" .exe .
For example taskkill / f / im Skype.exe (disable Skype application).
Uses: Turn off a running application.
12. REG ADD command.
Syntax: REG ADD KeyName [/ v ValueName] [/ t Type] [/ s Separator] [/ d Data] [/ f]
- KeyName: Path to the Key.
- / v ValueName: The value name to create.
- / t Type: Data type.
- / d Data: Value value.
Uses: Create, edit the Registry.
13. REG DELETE command.
Syntax: REG DELETE KeyName [/ v ValueName] [/ f]
- [/ v ValueName]: The value name to delete.
Uses: Delete the value in the Registry.
14. REGEDIT.EXT command.
Syntax: Regedit.exe / s "where the .reg file is not"
- / s: No need to ask.
Uses: Run the .reg file.
15. ATTRIB command.
Syntax: ATTRIB -a -s -h -r "file, directory" / s / d
or ATTRIB + a + s + h + r "files, directories" / s / d
- + sign: Add the attribute.
- Mark -: Remove the attribute.
- a: Archive (storage properties).
- s: System (system property).
- h: Hidden (hidden attribute).
- r: Read- only (attribute read only).
- / s: Perform with all files located in the directory and subfolders.
- / d: Set properties for directories and subfolders.
Uses: Set properties for files and folders.
Above are some of the most useful and common CMD commands. There are also other CMD commands that are less used but sometimes necessary, you can learn more.
You should read it
- Commands in CAD - Summary of the most complete AutoCAD command
- Summary of commands in MSWLogo
- How to open RUN dialog box and 60+ common commands on Windows
- Summary of DOS commands in MS-DOS
- Summary of commands in PowerShell
- Combine all the most basic AutoCAD commands
- Guide to network operation for Linux users: 11 commands to know
- What is CMD Commands in Windows
May be interested
- What is CMD Commands in Windowswhat is cmd commands in windows. for those who are new to computers, they will not know what cmd is and how to use it. so in the following article of tipsmake.com will help you answer what is cmd? and the most common commands used in cm
- Commands in CMD are common and useful in Windows 10cmd - command prompt is a command-line interface application used to execute batch files, perform tasks quickly, help you troubleshoot and solve some windows problems when the system crashes. tipsmake.com will summarize for you
- Summary of common keyboard shortcuts in Windowsproficient use of shortcuts on windows will help you save time, greatly increase productivity. here i summarize the common keyboard shortcuts, commonly used in windows 7, 8, 10 for your reference.
- Summary of basic cmd commands and how to open Administrator rightsthis article will summarize the basic cmd commands and how to open files with administrator rights on windows, see all cmd commands to open administrator rights here.
- 99+ Prompts to help you become an expert using any AIit takes time to come up with prompts when using ai, we can help you with the list of ai prompts in this article.
- 5 Linux commands every sysadmin needs to knowin a world full of new tools and diverse development environments, learning some basic sysadmin commands is practically essential for any developer or engineer.
- Common Terminal commands in Raspberry Piyou have a raspberry pi on hand, but not completely confident with linux? although the main desktop is easy to use, sometimes users need to rely on the command line entry in the terminal.
- How to enable cheat codes in Minecraft 1.19 and common commandshow to enable cheat codes in minecraft 1.19 and popular commands, instructions on how to enable and use cheat codes in minecraft and a list of common control commands
- Common GHOST errors and how to fix themsummary of common errors when ghosting and instructions on how to fix it. you should consult before performing the ghost to be able to grasp the cause and offer a solution.
- ManPage Help in Unixall unix commands come with arbitrary and mandatory functions. it is very common when you forget the full syntax of these commands.