Organize files on Windows with Linux commands-using WSL-

Purpose of this article

・ Those who "want to try Linux commands but think that it is troublesome to build a virtual environment" ・ Those who "want to use live files instead of creating a practice directory for studying" ・ "For those who want to organize files on Windows efficiently for the time being"

Using ** WSL ** for the above people, ** The purpose is to be able to operate (organize) files on Windows using Linux commands **.

What is WSL

-Abbreviation for "Windows Subsystem for Linux". -A subsystem that realizes a Linux execution environment on a Windows OS.

How to build a Linux environment using WSL

This time, I will list it in bullet points for "Windows 10" users.

  1. Enable WSL To use WSL, you need to enable the WSL function. Go to Start> Settings and open the Enable or Disable Windows Features tab. Check "Windows Subsystem for Linux" and restart your PC as shown below.   image.png

  2. Install Ubuntu A Linux distribution is required to use WSL. As shown below, search for Ubuntu in the "Microsoft Store" and search for "Ubuntu" that appears at the top. Install it.   image.png After the installation is complete, search for "Ubuntu" from the start menu and start it.   image.png

  3. How to link files between WSL and Windows You can refer to the WSL and Windows files by the following methods.

Accessing the Windows file system from WSL (entered in Ubuntu)


'cd /mnt/{Drive name}'

Accessing the WSL file system from Windows (entered in Explorer)


'\\wsl$'

Finally

There are two main methods for building a Linux environment, each of which has its advantages and disadvantages. With that in mind, let's learn Linux commands and organize files efficiently!

WSL Merit: Since the file on the host is directly referenced, security concerns remain. Disadvantages: You can easily use the Linux CUI environment because you do not install another OS. Virtualization Merit: Since another OS is installed, a separate environment that does not affect the host can be built. Disadvantages: Performance depends on specifications because it uses machine resources.

Recommended Posts

Organize files on Windows with Linux commands-using WSL-
Linux (WSL) on Windows
Use Linux on Windows 10 (WSL2)
WSL2 ~ Linux on Windows ~ (Part 1: Introduction)
Install wsl2 and master linux on windows
Run Kali Linux on Windows with GUI (without VirtualBox)
Problems with windows python being called on pipenv on WSL
Use Windows 10 fonts with WSL
Linux on Windows -1-: debian introduction
Linux environment construction (on WSL environment)
Blogging with Pelican on Windows
Use Tensorflow 2.1.0 with Anaconda on Windows 10!
Getting started with USD on Windows
Bring files in Windows to WSL
Getting started with Python 3.8 on Windows
pykintone on Windows Subsystem for Linux
Find large files / directories on Linux
Using Kali Linux Gui with WSL2
Edit files directly on Linux with Visual Studio Code Remote SSH
[UE4] Build DedicatedServer on Windows and Linux
Run servo with Python on ESP32 (Windows)
Organize Linux
X86 assembler on Linux (linkage with C)
Django + Apache with mod_wsgi on Windows Server 2016
[C] [python] Read with AquesTalk on Linux
WSL2 (Windows Subsystem for Linux) installation procedure
Download files on the web with Python
Put MeCab binding for Python with pip on Windows, mac and Linux
Install Mecab on Linux (CentOS) with brew
Create a Linux virtual machine on Windows
How to find large files on Linux
Run Linux on ARM architecture with QEMU
Set up golang with goenv on GNU / Linux
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
Cross-compile windows version from nim on arch | linux
Start a process with a scheduling policy on Linux
Boot CentOS 8 from Windows 10 with Wake On LAN
Install PHP 7 series on Amazon Linux 2 with Amazon Linux Extras
Python on Windows
Try running the toio core cube on Windows 10 / macOS / Linux with the Python library bleak
Maintain directory structure on Linux and move old files
When Windows Subsystem for Linux (WSL) cannot be started
[Linux] WSL2 Build an environment for laravel7 with Ubuntu 20.04
PIL with Python on Windows 8 (for Google App Engine)
Create an OpenAI Gym environment with bash on Windows 10
A story about a Linux beginner putting Linux on a Windows tablet
Cross development environment (developing programs for windows on linux)
How to operate Firefox with selenium on Windows Memo
How to set up WSL2 on Windows 10 and create a study environment for Linux commands
[Cyberduck] How to exchange files on Linux (CentOS7) started by VirtualBox with mac using GUI
No more dual boot or VM! Let's build a Linux environment with WSL2 & Windows Terminal [WSL2]