How to run the command line as administrator: instruction for beginners

how to run the command line as administrator

Today we will deal with the question of how to run the command line as an administrator. This need arises, as a rule, when making any changes to system files. Indeed, the phrase “Enable the command line” is often found in various instructions, and many inexperienced users cannot cope with this task. In this article, you will learn how to run a command prompt as an administrator. All actions are performed in the Windows operating system.

Training

But before you start describing the instructions, it will be useful to find out what the command line is, because many are afraid of the complexity and lack of a graphical interface. The command line is one of the varieties of text management. That is, there are no windows and shortcuts familiar to everyone. All control is carried out using text commands typed on the keyboard. In some cases, the command line is called the console. This interface facilitates the interaction between the computer and the person.

run the file through the command line

For certain operating systems, there is a set of commands and its own individual syntax. Do not think that management through this kind of interface is complicated. In most cases, you just need to type in plain text commands. Only it should be noted that there is no way to copy information through the clipboard , so you have to type the commands manually. Next, you will learn how to run the command line as an administrator.

Instruction manual

Press the "Start" key, go to the "All Programs" menu and open the "Standard Programs" folder. Here, right-click on the "Command Prompt" application and select "Run as administrator". This manual is relevant only for Windows 7. Although it can be applied to other versions. You can also use the special search from the Start menu.

Launch files

To run the file through the command line, just write the correct command. That is, when the program window is in front of you, simply specify its directory in the format: C: \ Program Files \ ... \ file name. The first character indicates the local drive, followed by a more accurate address. The file name is indicated along with its extension through a dot. If you are afraid to specify the wrong directory, you can view it if you right-click on the document of interest and select "Properties". The full address will be indicated in the "Accommodation" field, you just have to add the name and extension.

command line as administrator

Additional Information

Earlier, you learned how to run the command line as an administrator in the usual way, but you can speed up this process so that you do not have to enter the desired directory each time. To do this, open the desired folder using the simple method through the explorer and hold down the Shift key. Next, right-click on an empty area and find “Open Command Window”. Thus, you will immediately get to the right folder.

Conclusion

The command line in some operating systems is used as a standard interface. Of course, this is alien to modern users, but sometimes it will be useful to learn how to use text management correctly. I hope you learned how to run the command line as administrator.

Source: https://habr.com/ru/post/K23897/


All Articles