[LINUX] Unable to open file for writing About sudo

A personal memo for the first week of joining the company.

Entering vm of Virtualbox and working on environment construction .. When I tried to open the file according to the procedure manual, I got angry as follows.

When you type the vi / etc / filename command

** Unable to open file for writing **

Execute with sudo privilege as follows to solve.

sudo vi /etc/file name

What is sudo ...?

** sudo command ** Execute the command with superuser (root user) privileges.

You can set it to run without a password, or you can run the command with your own password to run the sudo command.

The "root" user has "administrator privileges" on Linux and Unix Like Systems.

It has the same meaning as administrator in Windows.

Recommended Posts

Unable to open file for writing About sudo
(For myself) Flask_5 (Add to txt file)
Wait for another window to open in Selenium
Write about building a Python environment for writing Qiita Qiita
Mac application for double-clicking to open Jupyter Notebook (* .ipynb)
I thought about how to learn programming for free.
Double-click to open ipynb file (Mac, Anaconda virtual environment)