・ 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 **.
-Abbreviation for "Windows Subsystem for Linux". -A subsystem that realizes a Linux execution environment on a Windows OS.
This time, I will list it in bullet points for "Windows 10" users.
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.
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. After the installation is complete, search for "Ubuntu" from the start menu and start it.
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$'
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