The most complete and easy way to use CMD (Command Prompt)

Command Prompt or we often call it with the familiar name CMD, this is a command line tool available on the Windows operating system, and it is also one of the most effective support tools on Windows.

The CMD tool appeared very early on the Windows operating system, it dates back to the days of MS-DOS and it is integrated on most versions of Windows operating systems today.

Therefore, understanding and knowing how to flexibly use the command lines in CMD will be very useful for you in the process of using a computer, especially for those of you computer technicians, or those who want to create new applications. batch file to run automatically…

1. How to Open the CMD Tool (Command Prompt)

There are many ways to start the Command Prompt window. You can quickly search on the Windows Search bar (located on the Taskbar).

If you do not see this search box, you can press the Windows + S key combination => then search with the keyword cmd.

Picture 1 of The most complete and easy way to use CMD (Command Prompt)

Ok then, you select Command Prompt in the returned results box to start the CMD command line tool.

Picture 3 of The most complete and easy way to use CMD (Command Prompt)

Or you can open the CMD window by pressing the Windows + R key combination to open the Run dialog box => then enter the cmd => command and press Enter to execute.

Picture 4 of The most complete and easy way to use CMD (Command Prompt)

After starting the Command Prompt, the default interface of the CMD window will be as shown below, so you have successfully started the command dialog.

Picture 5 of The most complete and easy way to use CMD (Command Prompt)

2. Run Command Prompt with Administrator rights

Admin has a separate article to summarize a lot of ways to run CMD with Admin rights, full instructions on Windows operating systems (Windows 7, Windows 8.).

You can refer to this article for more ways: How to open CMD with Administrator rights (administrator rights) on Windows

There are commands that you must run CMD with Admin privileges to use. Therefore, opening a CMD command line window with Admin rights is something you must know.

If you are using Windows 10 operating system, you can quickly see the way below: You also search with the keyword cmd => then click Run as administrator to finish.

Picture 7 of The most complete and easy way to use CMD (Command Prompt)

Here is the cmd dialog with Admin rights:

Picture 9 of The most complete and easy way to use CMD (Command Prompt)

Do you know how to distinguish between running Command Prompt with Admin rights and without Admin rights? Well, simply compare the features as follows:

Picture 11 of The most complete and easy way to use CMD (Command Prompt)

(No Admin rights)

Picture 12 of The most complete and easy way to use CMD (Command Prompt)

(And here is with Admin rights)

3. Copy and Paste operations in CMD

For Windows 10, if you want to copy a certain paragraph, you just need to highlight that paragraph => and press Ctrl + C to copy as usual.

Picture 13 of The most complete and easy way to use CMD (Command Prompt)

Next, if you want to Paste (paste) the command, just press Ctrl + V or right-click.

Note: In older versions of Windows, using the Ctrl + C or Ctrl + V key combination does not work.

Therefore, the way to copy in Command Prompt for older versions of Windows is, right-click the command window => then click Mark to be able to highlight the content. (cannot Cut the text in this).

Picture 15 of The most complete and easy way to use CMD (Command Prompt)

Then you press Enter to copy.

Picture 17 of The most complete and easy way to use CMD (Command Prompt)

If you want to paste the text, right-click the command dialog => then click Paste and you're done.

Picture 19 of The most complete and easy way to use CMD (Command Prompt)

4. How to change background color, text color and font in CMD

If you are bored with the default background color and font, you can change it quickly by right-clicking in the corner of the command window => and selecting Properties.

Picture 21 of The most complete and easy way to use CMD (Command Prompt)

Next, in the Properties dialog box, select the Font tab, now you can choose the font size and font.

Picture 23 of The most complete and easy way to use CMD (Command Prompt)

If you want to change the background color or text color for CMD, then switch to the Colors tab. You click:

  • Screen text to change the color of the text.
  • Screen Background to change the background color of the command window.
  • Opacity to change the transparency of the Command Prompt window.
  • To see your edits, look in the Selected Screen Color box.
  • Picture 25 of The most complete and easy way to use CMD (Command Prompt)

    4. Share some commonly used commands in CMD

    4.1. How to view computer information with the systeminfo . command

    The systeminfo command gives us quite a bit of information about the operating system and the computer.

    It not only provides us with basic information about the OS, but also provides other information such as installed updates, BIOS version of the computer, OS installation time, etc.

    Picture 27 of The most complete and easy way to use CMD (Command Prompt)

    Picture 29 of The most complete and easy way to use CMD (Command Prompt)

    The listed information is:

  • Host Name: The computer name.
  • OS Name: The OS name.
  • OS Version: The OS version.
  • OS Configuration: Configure the OS.
  • OS Build Type: OS Build Type.
  • Register Owner: The first account name created by the user after installing Win.
  • Original Install Date: Time when Windows installs successfully.
  • System Boot Time: The last time Windows was booted successfully.
  • System Manufacturer: The manufacturer of the computer or laptop.
  • System Model: Computer or Laptop model code.
  • System Type: The 32 or 64bit version you are using.
  • Processor(s): Information and number of CPUs attached to the computer or laptop.
  • BIOS Version: The BIOS version of your computer or laptop.
  • Windows Directory: The path to the WINDOWS directory on your OS, usually C:WINDOWS.
  • System Directory: The path to the System32 folder on your OS, usually C:WINDOWSSystem32.
  • Boot Device: Boot partition path.
  • System Locale: System locale.
  • Input Locale: Input language (written).
  • Time Zone: The time zone of your computer or laptop.
  • Total Physical Memory: Total amount of RAM of the computer.
  • Available Physical Memory: The amount of RAM remaining (Only counted when running this command).
  • Virtual Memory: Max Size: Total capacity of virtual RAM.
  • Virtual Memory: Available: The amount of virtual RAM remaining.
  • Virtual Memory: In Use: The amount of virtual RAM in use.
  • Page File Location: The path to the Page file.
  • Domain: The domain name of the computer.
  • Logon Server: The name of the computer in use.
  • Hotfix(s): Name and number of installed Win updates.
  • Network Card(s): Installed network adapters.
  • Hyper-V Requirements: Conditions for running Hyper-V (virtualization).
  • 4.2. Commands to navigate location in Command Prompt

    The cd command helps us point the Command Prompt to any directory on the hard drive to execute or list the files and folders in it.

    By default, when running cmd with normal User rights, the default path will be: C:Users'Username'. For example, my account name is Admin, the path will be: C: UsersAdmin.

    Picture 31 of The most complete and easy way to use CMD (Command Prompt)

    If running as Administrator, the path will be: C: WINDOWSSystem32.

    Picture 33 of The most complete and easy way to use CMD (Command Prompt)

    How to use the cd command in CMD is as follows:

    cd 'path-to-directory-in-drive'

    For example, now I want to point CMD to the New Folder folder on the Desktop, I will use the following command:

    cd C:Users~~~~~~DesktopNew Folder

    Picture 35 of The most complete and easy way to use CMD (Command Prompt)

    The important thing is that you get the path to the location you want to point to, it's very simple, you can do as shown below.

    Picture 37 of The most complete and easy way to use CMD (Command Prompt)

    Bonus: You can point to a folder in a subfolder without writing the entire path if you already point to the parent folder.

    For example: I am in the Desktop folder, then I can point to the New Folder folder on the Desktop by using the command cd New Folder.

    Picture 39 of The most complete and easy way to use CMD (Command Prompt)

    Note: Using the cd command to point to a directory only applies within the same hard drive partition. For example, if you are in drive C and you want to point to the directory of drive D, you cannot use the cd command to point directly.

    But to point to another hard drive partition, you must switch CMD to that partition location first, for example, I will enter the command D: => and press Enter. So okay.

    Picture 41 of The most complete and easy way to use CMD (Command Prompt)

    5. Conclusion

    OK, so I have finished showing you how to use the CMD command line window in a very basic way. These are the basic knowledge that you need to master if you want to learn more advanced things. 

    Command Prompt CMD

    ncG1vNJzZmismaXArq3KnmWcp51kwamxjKamrKxdmLyuvMueq55lkaOxbrHArLBmr5GuerW7jK6qnmWTorFur86mpJqmlGK9s7vMqas%3D