A memo of what I did from a blank state to searching for characters using the "grep command" on "Ubuntu"

at first

Execution environment

Ubuntu installation

Ubuntu version check command

Ubuntu version check command


$ cat /etc/issue

In my case, the output is as follows.

Ubuntu 20.04 1 LTS \n \l

I noticed that the path of the sudo command is not in the path

  1. Change to the following directory.
C:\Users\<User name>\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\LocalState\rootfs\etc\sudoers.d
  1. Open the file `99-snapd.conf``` in the sudoers.d``` folder at the end with Notepad etc., and open the `` secure_path``` part as follows Edited as.
# Allow snap-provided applications to work with sudo
Defaults    secure_path += /usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

To eliminate the "Permission Denied" error

$ chmod 764 -c <file name>

Recommended Posts

A memo of what I did from a blank state to searching for characters using the "grep command" on "Ubuntu"
Using JUnit from the command line on Ubuntu
What I did in the version upgrade from Ruby 2.5.2 to 2.7.1
What I did in the migration from Spring Boot 1.4 series to 2.0 series
What I did in the migration from Spring Boot 1.5 series to 2.0 series
I want to display the number of orders for today using datetime.
How to run a GIF file from the Linux command line (Ubuntu)
What I tried when I wanted to get all the fields of a bean
I managed to get a blank when I brought the contents of Beans to the textarea
Tips for using the Spotify app on Ubuntu
Rspec: I want to test the post-execution state when I set a method on subject
The story that did not disappear when I tried to delete mysql on ubuntu
I tried to explain what you can do in a popular language for web development from a beginner's point of view.
I tried to summarize the state transition of docker
Notes on updating Ubuntu from the command line (16.04 → 18.04, 18.04 → 20.04 both)
Command to try using Docker for the time being
I want to use Java Applet easily on the command line without using an IDE
Implemented a strong API for "I want to display ~~ on the screen" with simple CQRS
What I was addicted to while using rspec on rails
How to Burning a Install Disk of Windows from Ubuntu
How to make Ubuntu a fixed IP address on the command line (explained as carefully as possible)
What I was addicted to when updating the PHP version of the development environment (Docker) from 7.2.11 to 7.4.x