Summary of the common Run CMD commands

Instead of performing manual and direct access operations on Windows, we can replace existing CMD commands for faster access.

To access a folder on your computer, or perform some commands on Windows, we often use the Run dialog box and enter the path or command. This will help users access and manipulate faster. Or some access on Windows is required to use this command line interface. So, when you have a handful of common and frequently used commands, Run CMD will help us get results faster. In the following article, we will synthesize the common Run commands to readers.

First of all, we need to open the Run dialog box with Windows + R key combination and type the keyword cmd , click OK to access.

Summary of the common Run CMD commands Picture 1Summary of the common Run CMD commands Picture 1

1. PING command:

Command line: ping ip / host / [/ t] [/ a] [/ l] [/ n]

Inside:

  1. ip: the IP address of the computer to be checked, the host is the name of the computer to check the network connection. Users can use the IP address or computer's name.
  2. / t: requires sending packets continuously to the destination until you press Ctrl + C to finish.
  3. / a: receive IP address from computer name.
  4. / l: Determine the width of the packet sent for testing.
  5. / n: determine the number of packets sent.

How to use the PING command: we can use the PING command line when we want to check if the computer is connected to the Internet. When executing the PING command, packets from the computer that you want to check are sent to the destination computer, from which the user can check the connection or determine if the computer is connected to the network.

2. Tracert order:

Command line: tracert ip / host

Where: ip / host is the IP address or computer name to be checked.

How to use the Tracert command: The Tracert command is used to display the path of packets from the test computer to the destination computer, via which server or router.

Summary of the common Run CMD commands Picture 2Summary of the common Run CMD commands Picture 2

3. Netstat command:

Command line: Netstat [/ a] [/ e] [/ n]

Inside:

  1. / a: Displays all connections and ports that are open.
  2. / e: Ethernet statistics information.
  3. / n: displays addresses and connection port numbers.

How to use the Netstat command: helps users to know the incoming and outgoing connections to the computer that they want to check.

4. Ipconfig command:

Command line: ipconfig / all

How to use the ipconfig / all command: show the information of the computer under test including host name, IP address, DNS, .

Summary of the common Run CMD commands Picture 3Summary of the common Run CMD commands Picture 3

5. Shutdown command:

Command line:

  1. Shutdown -s -t [a] : Shutdown (on Windows 7).
  2. Shutdown -r -t [a] : starts the computer.

In which: a is the time to turn off or turn on the machine in seconds.

Summary of the common Run CMD commands Picture 4Summary of the common Run CMD commands Picture 4

How to use the Shutdown command: turn off or restart the computer on a scheduled schedule. In addition, readers can refer to how to schedule a shutdown for a Windows 10 computer in the article Instructions for scheduling a Windows 10 computer shutdown.

6. DIR command:

Command line: DIR [drive:] [path] [filename]

Inside:

  1. Path: path to file or directory.
  2. Filename: file name.

DIR command uses: help users to search and check files and folders in the computer.

7. DEL order:

Command line: DEL [/ p] [/ f] [/ s] [/ q] [/ a [[:] attributes]] "file name to delete"

Inside:

  1. / p: display file information before deleting.
  2. / f: delete files with read-only properties.
  3. / s: delete all files that appear in any folder.
  4. / q: delete without asking.
  5. / a [[:] attributes]: delete file properties (R: Read-only files, S: System files, H: Hidden files).

Use DEL command: delete files on the computer.

8. COPY order:

Command line: COPY "" the file address to be copied "" to save the copy file "/ y

In which: / y is copying files without asking.

How to use COPY command: use in case you want to transfer files from one folder to another in the computer.

Summary of the common Run CMD commands Picture 5Summary of the common Run CMD commands Picture 5

9. RD command:

Command line: RD / s / q "folder to delete"

Inside:

  1. / s: delete the entire directory.
  2. / q: delete the directory without asking.

How to use the RD command: in case we want to quickly delete certain folder on the computer, we can apply this command.

Summary of the common Run CMD commands Picture 6Summary of the common Run CMD commands Picture 6

10. MD Order:

Command line: MD "path to save file to create" "directory name to create"

How to use the MD command: use in case of creating a new directory in the drive.

For example, MD "D: Amnhac" to create the Amnhac folder in the computer D drive.

Summary of the common Run CMD commands Picture 7Summary of the common Run CMD commands Picture 7

11. TASKKILL order:

Command line: taskkill / f / im ".exe" name

How to use the TASKKILL command: turn off the running software in case the software has a problem, cannot exit directly.

12. Order of REG ADD:

Command line: REG ADD KeyName [/ v ValueName] [/ t Type] [/ s Separator] [/ d Data] [/ f]

Inside:

  1. KeyName: path to lock.
  2. / v ValueName: The name of the value to create in the Registry.
  3. / t Type: data type.
  4. / d Data: initialization data for the newly created value.

How to use the REG ADD command: use the command to create and edit the Registry.

13. REG DELETE command:

Command line: REG DELETE KeyName [/ v ValueName] [/ f]

Where: [/ v ValueName] is the name of the value to delete.

How to use the REG DELETE command: use in case you want to delete a certain value in the Registry.

14. REGEDIT.EXE command:

Command line: Regedit.exe / s "where the .reg file is located"

In which: / s does not need to ask.

Usage: used in case of running .reg file.

15. ATTRIB command:

Command line: ATTRIB -a -s -h -r "file, directory" / s / d or ATTRIB + a + s + h + r "file, directory" / s / d

Inside:

  1. + Sign: add attribute.
  2. - -: remove properties.
  3. a: archive is an archive property.
  4. s: system is the system attribute.
  5. h: hidden is hidden attribute.
  6. r: read-only is read-only property.
  7. / s: done with all files located in directories and subdirectories.
  8. / d: set properties for directories and subdirectories.

Usage: used to set properties for files or directories.

I wish you all success!

4.3 ★ | 7 Vote