WSL
Windows Subsystem for Linux (short WSL) is a Windows 10 can run on native Linux binary executable file (ELF format) compatibility layer. It is a collaboration with Canonical developed by Microsoft, its goal is to make pure Ubuntu 14.04 "Trusty Tahr" images can be downloaded and expanded into a local computer user, and the tools and utilities in the image can natively run in this subsystem.
It can be understood as Linux subsystem for Windows
first step
Win10 Settings -> windows update and Security -> Developer Options -> check the developer mode
The second step
Control Panel -> Programs and Features -> Enable Windows features on and off -> Check the Windows subsystem for Linux
Process may prompt you to restart
third step
download
method one
Micerossft Store——>bash——>Ubuntu16.04(自己用的)——>安装
Second way
to download the document to view the official command
Check whether the input successfully win + r bash on it
After downloading Ubuntu16.04 win10 position in the specific win10
In File Explorer Enter
method one
C:\Users\用户名\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu16.04onWindows_79rhkp1fndgsc\LocalState\rootfs
Second way
\wsl$\Ubuntu-16.04
In other source
Ubuntu16.04
first step
Back up the original source
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
The second step
Modify sources.list
Clear amended as follows
Ali source
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
Tsinghua source
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
Software and software update list
sudo apt update
sudo apt upgrade
Change the look
As the conversation window color WSL actually depends CMD properties in the color of the label inside color, the default is really ugly, neither the characters nor the highlight clear, serious impact on development efficiency.
Which you need to use an open source tool CMD color: ColorTool
Management terminal bash
Linux servers are usually used above is the default SHELL Bash. In fact, in addition to Bash, there are many other SHELL program, such as: ZSH, CSH, Fish and so on.
Not setting them up here
Zsh installation reference documentation
Hyper (includes appearance and management)
I personally use the Hyper
Hyper is based on Electron, so it's plugins, themes and so scalability is very powerful. A few simple lines of Javascript, HTML, CSS code, you can customize your own plug-ins.
On Windows it is integrated in the WSL (cross-platform high-value color terminal software)
Quguan network directly download https://hyper.is
If you are macOS platform, you can quickly complete the installation command by Homebrew
$ brew cask install hyper
Hyper itself is a plug-in support system before installing the extension, you need to install Hyper command-line program. You can click on menu, select Plugin Options, and then click Install Hyper CLI command in PATH.
Install plug
$ hyper i vermina
Hyper official theme Address: https://hyper.is/themes
Hyper official plug-address: https://hyper.is/plugins
Usually when using the WSL (Windows Subsystem for Linux) work, we hope to enter the interior SHELL WSL terminal at startup. However, by default we need to enter WSL terminal after starting the terminal and enter the command bash.
Now, you simply open the Hyper settings page file, from the menu Edit - enter> Preferences, and then edit the shell and shellArgs parameters.
change into
shell: 'C:\\Windows\\System32\\bash.exe',
shellArgs: [],
Reopen Hyper, you will find that the default has been entered Bash terminal interface.