Good afternoon, dear readers of the blog site, today I want to talk about How to open the Windows command line / 10 ways to open the command line. What is cmd, that's what Wikipedia tells us.

cmd.exe- interpreter command line(English) command line interpreter) for operating systems OS / 2, Windows CE and for a family of operating systems based on Windows NT (eng. Windows NT based). cmd.exe is analogous to COMMAND.COM , which is used in the MS-DOS and Windows 9x families. AT operating systems Windows families NT for IA-32 and OS/2 architecture also has COMMAND.COM for compatibility with older programs. In the interpreter settings, it is possible to change the cursor size, font, text color and window size.

Let's consider the same how to open it.

How to open command prompt as administrator

Below we will look at ten ways I know how to open a command prompt as an administrator.

1 way to run command line. Prior to Windows 8 (unless you want to return the start button)

In order to open the command line, press start and enter cmd in the search field, the icon of the program to launch will appear on top

or enter command line, the effect will be the same

If you need to open cmd as Administrator, then this is done right click and item selection

In Windows 10, the search looks like this, you click on the magnifying glass icon and write cmd. At the top you will see the search result.

2 way is using through Run

Press two magic buttons win+R

The Run window will open, type cmd in it and press Enter

3 The way to open the command line is through the Windows folder

Open My Computer and follow the path C:\Windows\System32 and find the cmd.exe file there. The method is not the fastest, but everyone can handle it. The essence is simple, the command line, like all utilities, has its own executable file. We find it and run it, do not forget about the right click and the context menu with the administrator mode.

4 The way to call cmd is to create via shortcut

AT this method we will create a Windows shortcut for the task. Right click Create - Shortcut

Specify the location of the file, write here cmd

How to name the shortcut is up to you, I'll call it cmd too, Done

And we see that a command line shortcut has been created

5 Way to start the command line, through the task manager

Open the task manager by right clicking on the bottom of the screen

Go to menu File-Run new task

We write cmd in the task and click OK and turn on the command line.

6 Command line launch method, for those who have windows 8 and higher

We go to the start and press the magnifying glass at the top right or the magnifying glass can be called from side menu on desktop

We enter cmd and in the search results we see the shortcut we need.

You can also press the down arrow in the start

The start menu structure will open in which swiping to the right you will find the command line

7 Command line launch method, for those who have windows 8.1 and higher

Right click on start and select Command Prompt

8 way through standard programs in start up to windows 8

Open start all programs

Go to System Tools - Command Prompt

9 Method using the File Explorer menu in Windows 8, 8.1 and 10

Open any folder and click the File menu on the left

and choose to open a command prompt, you will immediately be offered two options - a simple opening or on behalf of the Administrator.

The trick is that the command line will open the current directory, not the user's folder.

10 way through the Shift button

Select any folder, hold Shift and right-click the mouse and from the context menu select Open Command Window

Launching with voice assistants

In an era when people have become lazy at the root, it is already difficult for them to enter something on a computer and phone. Voice assistants have arrived, Cortana, Alice, Google Assistant, they all allow you to perform various actions with your voice. Depending on which one you have voice assistant, you need to say the magic phrase to activate it, then ask it to open a command prompt for you. Let me remind you that Cortana is only available in Windows 10.

Here we have figured out how to open the Windows command line, which method is right for you, I don’t know just that there is a choice.

In today's article, we will look at how to open the command line in Windows 10. In all versions of Windows, the developers have provided for the launch and operation of various system commands through the command line. I very often come across various articles on the Internet, where the authors give various instructions to users and write: open the command line, write the following command. At the same time, the user falls into a stupor, everything seems to be clear, take the command, and the system will miraculously do everything for you, but there are practically no instructions on how to open the command line anywhere. This is especially important if you want to run it with administrator rights.

If you ask why we will consider how to open the command line in Windows 10, then let's figure it out. The fact is that if you have installed or are going to install Windows 10, you will see that the Start menu interface has been slightly redesigned there. So, in the top ten there is no shortcut for launching the command line, and there is also no “Run” item. Accordingly, the task for users is how to launch the command line.

Probably the most in a simple way run command line at normal mode and administrator mode, will be using the WinX menu. This menu appeared in new Windows 10, and its name corresponds to a combination of hot keys. Let's look at how to open the command prompt in Windows 10 using the new menu.

As you can see this method open a command prompt, the easiest and fastest, most likely, few of you knew about the new WinX menu.

We launch the command line through the Windows search.

In everything Windows versions built-in search menu. It makes it easy to find and run almost all third-party and some system commands and applications. To find desired application through the search, start typing its name, and the system will give you the options found.

To open a command prompt with Windows Search 10. Do the following steps.

That's all, this method is over, now you know how to open the command line in Windows 10 using the system search functions. Then we move on to the next step.

Launch Command Prompt using Windows 10 Explorer.

If you have recently installed Windows 10, then most likely you do not know that you can run the command line in the new operating system from any Explorer window.

In order to open the command line through the explorer, open any of its windows. Hold down the Shift key and right-click on any free area of ​​the window. A drop-down menu will appear in which we are interested in the item "Open command window". Next, a command prompt will open in front of you.

Note! In this way, the command line will be launched with normal rights, without administrator privileges.

How to open command prompt in windows 10 using cmd command.

Since the command line is run at startup system file cmd.exe, you can open it using the executable file. He lies in system folder. Depending on which operating system you have is 32-bit or 64-bit.

Note! The cmd.exe file will be in different directories. It all depends on the bitness of your operating system.

If you have a 32-bit operating system, then you will find the cmd.exe application along the path C:\Windows\System32 . For a 64-bit version of the operating system, this is the C:\Windows\SysWOW64 folder

You can also start the command line using the Run command interpreter. To launch it, press the hot key combination "Windows + R". The "Run" window will open, in which we prescribe the command "cmd". After clicking the "OK" button, a command prompt will open.

You can also run the cmd.exe application through the manager Windows tasks. You can open the Task Manager in Windows 10 using the keyboard shortcut "Ctrl + Shift + Esc" or right-click on the taskbar and select "Task Manager".

The next step, in the task manager, click the menu "File" - "Run a new task" and in the window that opens, write "cmd".
After pressing the "OK" button, a command window will open Windows string 10. Thus, we have figured out in detail how to open the command line in Windows 10 using the cmd.exe application.

Conclusion.

In today's article, we have examined in detail 4 ways to open a command prompt in Windows 10. I hope this instruction it will be useful to you and you will be able to execute all the necessary system commands using the command line. One of the most requested system command is Ping, we often use it when

It helps to safely perform various actions with documents, check the status of data transmission/reception, and has many other functions. First of all, you should study the actions with files, directories. How to open folders through the command line, creating them in general, working with them, including moving, renaming, how to delete a folder that is already unnecessary through the command line - you can resolve these issues by reading the article. The problem looks worse than it really is. The main thing here is to know the commands, correctly enter the address of the document. Below we will consider the main operations, you can see for yourself that there is nothing super complicated here.

There are several tricks to help you get started with the command line. You can open it like this:

When you first start, by default you are in your personal directory. Usually, this is "C:\Users\<имя пользователя>\».

Opening an existing folder

To open a folder, you must specify the path to it on the command line. First, enter the “cd” command, and then after the space, the address, for example, “C:\ProgramFiles\Skype”.

IMPORTANT. Please note: if there are spaces in the names included in the address, the entire path must be enclosed in quotation marks. If the names do not contain spaces, you can not type quotes with this command.

The slash can be used either forward or backward (\ and /). Both of them are read by the program in the same way, choose a convenient, familiar one for you.

If you are unsure of the exact name, press TAB then the up/down arrows to scroll through the list. Suppose you have "helloYou" and "helloMe" folders located in "C:\". Type "C:\>cd h" then press TAB twice to scroll through the list of components beginning with the letter "h".

Browsing content

To see the contents of a folder, the “dir” command is typed, after which the path to it is entered, then the parameters.

If you do not specify the path, then a list of contents will be displayed on the screen, where you are at that time.

If you don't enter parameters, the list will be presented with five columns:

  • date of the last change;
  • catalog date;
  • if the name in the list refers to a folder, will be ; if it is a different format, there will be an empty space;
  • file/folder weight;
  • the number of documents in the catalog, their total weight.

To avoid detailing, enter the command with the "/d" parameter - you will see just a list without additional information.

Creation

To create a new folder, "mkdir" is typed, or simply "md" can be abbreviated. Next, the path to it, the name is written. For example, in the root of drive C, you need to create a subfolder “Russian” in the existing “Test”, which means you type “mkdir “C:\Test\Russian” in sequence.

You can immediately create several new folders, specify the paths then separated by a space or names. Let's say in the same "Test" subfolders 1, 2, 3 are required. If you are already in the root of the C drive, type "mkdir "Test \1" "Test \2" "Test \3"". If you are already in "Test", you can use the shortened version of the command: "mkdir 1 2 3". But do not forget: if there are spaces in the names, they will need to be enclosed in quotation marks.

Removal

Delete folders, their contents allow the command "rmdir" or its shortened version "rm". After the parameters are prescribed, then the path.

If you want to delete an empty directory "Example folder", it is written according to the pattern "rmdir "C: \ Example folder"".

If the “Example folder” is not empty, it contains subfolders / files, in order to delete everything together, you should prescribe the “/s” key after the command. The key is entered after "rmdir", but before the destination address. That is, the entry will look like this: “rmdir / s “C:\Example folder””. After typing the command, you will see a confirmation request, select "y", which means that you agree to delete ("yes").

To prevent the confirmation prompt from constantly appearing, you can immediately register the “/q” key. It fits after "/s".

You can list the deleted items separated by a space. Suppose you no longer need folders 2 and 3 inside “Test”, so you write the command: “rmdir /s /q “C:\Test\1” “C:\Test\2” “C:\Test\3” ". If you are already in the "Test" directory, you can enter the shorthand: "rmdir /s /q 1 2 3".

Move, rename

For these two actions, there is one command - "move". After it, the parameters are written, then the path to the moved/renamed folder, then the path to the newly formed folder. It turns out that to move, you first specify the old path, then after the space, the place where the directory should move. When renaming, you specify the path with the old name, followed by a space with the new name.

Let's look at examples.


Transitions

Working through the command line, you wanted to change to a different directory. The "chdir" command will help you, allowing you to go to another location. Or just go to the section, as described in this article above, using the "cd" command.

To go to a subdirectory, it is not necessary to specify the full address if you are in the parent. Let's say you're in "ProgramFile", how do you go to the "Skype" folder on the command line? You don't need to specify the full path: "cd "C:\ProgramFiles\Skype""; it is enough to specify the name of the subdirectory: "cd "Skype"".

To go back to the parent directory, type "cd "ProgramFiles"".

If you want to change the location disk, the “/D” key is added, for example, from drive C: you need to go to D:, write “cd /D d:/”.

copying

The folder itself cannot be formally copied, but its contents are allowed to be copied, for which the “xcopy” command is used. After it, the parameters are entered, then the address of the copied directory, then after the space, the address of the new directory.

Let's say there is a folder "Foto", it was necessary to copy it along with the contents from "MyFile" to "NB". We write the command like this: “xcopy /e “C:\MyFile\Foto” “C:\NB\Foto””. The "/e" switch instructs to copy the internal contents of "Foto".

Working with the command line does not require special skills, a novice user will quickly master all the processes if desired, learn how to move, rename, open, create, copy, delete any file or directory, move from one place to another. Such a function is useful, the ability to handle the program will facilitate, speed up many actions when working on a PC. You just need to remember, save the set of commands, carefully enter the address of the component with which various actions will be carried out.

Command line - special program, which allows you to control the operating system using text commands entered in the application window. Its interface is completely text-based, unlike the usual look of the operating system.

Performing actions using text expressions, of course, is not as convenient as clicking icons on the screen, selecting menu items, opening program windows. But sometimes it is simply necessary to open the command line, for example, in case of problems in the system, working with network and equipment settings, calling system applications. Here are some examples of its use:

  1. The systeminfo command collects information about the system, including installed updates and network information. AT GUI no such data is available.
  2. chkdsk - check the disk for errors with the creation of a report.
  3. sfc /scannow- useful command launching a scan and repairing damaged files.
  4. ipconfig - allows you to find out the IP address of your computer in a split second.
  5. ping - check network operation in case of problems with the router.
  6. help - the command line will display a list of possible commands with brief information about them.

These are just a few examples of useful uses for this app. In addition, through the program window, you can quite successfully work on a computer without resorting to the mouse.

Ways to turn on

There are several options to open the Windows Command Prompt:

In a version higher than Windows 8, in order to apply this method, you need to click on the magnifying glass next to the username.


Also for quick launch you can create a desktop shortcut and hotkeys. You can create a label like this:

  1. In the explorer window, find the “Windows \ System32” folder, right-click on the cmd.exe file in it, then “Create Shortcut” and select a name for it.
  2. Right click on an empty space on the screen context menu find "Create Shortcut". In the field that appears, type C:\Windows\System32\cmd.exe. Next, select a name and click OK.

Now you can assign hotkeys. Call the context menu of the created shortcut, click "Properties", tab "Shortcut", in the field " Quick call» enter the desired combination.

Please note that when launched using a shortcut, search window and explorer, the command line is launched from the System32 folder, and using the Run item of the Start menu from the Users folder on your computer.

Opening with elevated rights

Among the methods discussed, some allow you to enable the command line as an administrator. The fact is that even if in the current work you use account Administrator, you do not have full rights to manage the system. This is done to improve reliability and reduce the risk of damage from malware.

For modern users, the command line mode may seem very inconvenient, since it is necessary to type unfamiliar commands in it, without making mistakes and typos. Nevertheless, some operations with a computer are easier and more convenient to carry out using only the command line of the operating system. In some cases this is the only possible way to perform certain actions on the computer. For example, the registry editor in operating systems of the Windows family quickly starts exclusively from the command line. There is no mention of it in the control panel. Therefore, knowing how to open the command line will definitely be useful for all users.


You can run command line different ways, which will also differ from the version of the Windows operating system you are using.

Windows 7 and Windows Vista
On these operating systems, you can open a command prompt in the following ways.

For some actions with a computer in operating rooms Windows systems 7 and Windows Vista you need to run the command prompt with administrator rights. To do this in the methods described above, you need to run the program not by double-clicking the left mouse button, but by right-clicking and then selecting the "Run as administrator" item in the context menu.


Windows XP
Click the "Start" button and in the list that appears, click on "Run". In the window that appears called "Startup Programs", type cmd and press the Enter key on your keyboard.

There is another way that works the same in all operating systems of the Windows family.

  1. Press the keyboard shortcut Win + R. Win key has the Windows logo and is located on the left side of the keyboard between the Ctrl and Alt buttons.
  2. In the window that appears, in the command line, type cmd and press the "OK" button in the window or the Enter key on the keyboard.
The command line window looks like this.

Working with it is a set of specific commands. The set of a separate command is completed by pressing the Enter key on the keyboard, after which the command is sent for execution and processed by the computer.

You can get help on the main commands you use by typing the word help and pressing the Enter key on the keyboard.