M
M
Michael2017-07-31 14:36:46
JavaScript
Michael, 2017-07-31 14:36:46

How to open hosts folder as administrator via command line?

wanted to change the localhost name to, say, site.local. When I try to save - writes that there are not enough rights. What do you need to write on the command line to open etc/hosts through sublime?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Laud, 2019-03-03
@chil

Because when you write a = 2 without declaring it, the value is written to the global variable a. If inside functions we replace a = 2 with let a = 2, the behavior changes.

D
Denis Michurin, 2017-07-31
@denistu10

If Linux, then sudo nano /etc/hosts
Windows, then the easiest way is to just run sublime from the admin, well, or a notepad from the admin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question