What is Command Prompt and How to Use It ?

Command Prompt is a command line interpretation application. This command prompt is available on all computers running Windows operating system.

Command prompts are used to execute commands given through batch files and scripts. Aside from that, command prompts are also used for troubleshooting issues related to Windows deployment and for advanced management features.


The official name of Command Prompt (provided by Microsoft) is Windows Command Processor, but it is also commonly known as Command Shell, Command Prompt, or cmd.exe. The command prompt is sometimes called a DOS or MS-DOS prompt, but a command prompt is a Windows application that can process command-line arguments similar to MS-DOS.

How to Open Command Prompt?

The command prompt, sometimes known as a command shell or simply cmd.exe, can be opened in a number of ways:

Open Command Prompt in Windows 7

Click the Start button, once the Start menu is open, click the Run option that appears at the bottom right of the menu. Once the Run window opens, type cmd and press Enter.

Open Command Prompt in Windows 8/10

Click the Start button. Once the menu opens, type cmd and press Enter.

You can open the run window by pressing the Windows key and R at the same time, and typing cmd in the run window will bring up a command prompt.

Open the command prompt from the directory

If you want to switch from one drive to another at the command prompt, you must change the drive with the cd command. But it takes time and you need to change the directory (drive) using cd command until you reach the desired location.

To avoid this, go to the desired location in Windows File Explorer, type cmd in the address bar and press Enter. This will open a command prompt at this point.

How does Command Prompt Work and Why Should Use It?

Command Prompt works at a simpler level than Windows, that doesn't mean it's not powerful. This means that you get more control over the PC and can communicate with it more directly. In addition to the common commands (dir, cd, copy, del), parts of the operating system that are not available through the graphical user interface can be accessed.

It can be used to perform a variety of functions, sometimes it is the only way to access some information or functionality.

In addition to the basic commands (displaying file directory lists, changing file directories, copying and deleting files), there are many other useful commands.

Why is Command Prompt Useful?

Although it is difficult for regular users to learn and use Command Prompt instead of modern apps with graphical user interface, this tool can be useful in some situations.

One of the main reasons the Command Prompt is useful is that it allows you to run multiple commands one after the other, which means you can use it to automate tasks. For example, by creating a simple script, you can create a batch of commands that run automatically at specific times you choose (such as when you log in to Windows, when you close Windows, or Only when you double-click on the batch file).

Another strong point of Command Prompt, especially in comparison to apps with a graphical user interface, is that it gives us a direct line of communication with the operating system. In other words, if you know the right commands, you can do more with Command Prompt than with a regular app.

Although using your mouse to work with Windows is usually sufficient for most users, the Command Prompt gives you a higher level of control over the operating system, giving you access to those options and tools. Provides access to services that are not otherwise available.

Important CMD Commands

1.mkdir

With the help of this command, you can create another new folder (directory) in the folder that is open in the command prompt.

It is used like this: mkdir folder name

2. dir

With the help of this command, you can find out about the content i.e. files and folders in the directory that is currently open in CMD and also get some basic information about it.

You use something like this - dir

3. rm

This command allows you to delete, i.e. permanently delete, the files available in the current command prompt folder, but the folders, i.e. directories, cannot be deleted with the help of this command.

It is used like this - rm FileName

4.rmdir

We can also use it to delete directories or folders.

It is used like this - rm DirName

5. Systeminfo

In this way we can obtain complete information about the system, a bit difficult to understand at a glance, but it contains everything.

Something like this is used - systeminfo

6. Winver

If you need information about Windows version, you can use this command, in this you will get all information about Windows name, version and build version.

Something like this is used - winver

Comments

Popular posts from this blog

What is a Server?

What is POP - Post Office Protocol ?

What are the Outlook.com POP Server Settings?