In this video we’ll install multiple Linux distro shells in the terminal of Windows 11 and see how we can manage them through PowerShell.
Windows Subsystem for Linux was introduced in 2016 for Windows 10, but with WSL2 it has become a very handy tool to work with Linux shells without working with virtual machines. WSL is similar to virtualization, but without the slow process of getting an OS up and running. It helps access Linux shells as quickly as opening the terminal.
#terminal #wsl #windows11 #linux #ubuntu
[ Ссылка ]
Timestamp:
0:00 Intro
0:20 WSL1 vs. WSL2
0:42 WSL2 requirements
1:00 install WSL2
1:25 update WSL2
1:46 update PowerShell
1:59 install Linux shells
2:16 install Ubuntu
3:12 WSL2 list current installed shells
3:59 WSL2 list available shells for download
4:15 WSL2 status
4:34 change default WSL version
4:46 install Debian on WSL2
5:38 change WSL default distro shell
6:17 open WSLs shells from CLI
6:28 uninstall WSL2 shells/distros
6:41 reboot WSL2 or shells
7:21 WSL2 snapshots, import, export
9:02 Two same distros in WSL2
9:33 Windows disk in WSL2 shells
9:54 changing default user in WSL2 shells
10:52 combine PowerShell & Linux commands with WSL2
11:37 manage Windows files from Linux shells in WSL2
11:53 WSL2 network shares to Linux shells
12:42 WSL2 get file path (wslpath -w)
13:06 WSL2 reset/repair/reinstall Linux shells
Used links and commands:
wsl --install
wsl -l -v
wsl -l -o
wsl --install -d Debian
wsl --set-default Debian
wsl --unregister DistributionName
wsl --shutdown
wsl --terminate, -t DistributionName
wsl --export DistributionName FileName
wsl --import DistributionName InstallLocation FileName
wslpath -w filename
ipconfig | wsl grep IPv4
sudo vim /etc/wsl.conf
[user]
default=username
(Ubuntu)
ubuntu config --default-user root
(Ubuntu 18.04 LTS)
ubuntu1804 config --default-user root
(Ubuntu 16.04 LTS)
ubuntu1604 config --default-user root
(openSUSE Leap 42)
openSUSE-42 config --default-user root
(SUSE Linux)
SLES-12 config --default-user root
(Debian)
debian config --default-user root
(Kali Linux)
kali config --default-user root
Ещё видео!