-
-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathwsl.sh
27 lines (20 loc) · 752 Bytes
/
wsl.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# List all installed distros
wslconfig /list /all
# Where all distros installed
%USERPROFILE%\AppData\Local\Packages\<package name>
# Copy files from Windows to WSL (/home/<username>). d is a drive letter
cp /mnt/d/temp.txt $HOME
# Connect to distros via the File Explorer
\\wsl$
# Print all env variables
printenv
# Update WSL distro
sudo apt-get update --yes && sudo apt-get upgrade --yes
wsl sudo apt-get update --yes && sudo apt-get upgrade --yes
# Send command to WSL from Windows
bash -c "echo World"
wsl --exec bash -c "echo Hello World"
# Install desktop GUI for WSL distro
https://www.makeuseof.com/tag/linux-desktop-windows-subsystem
https://www.davecwright.org/post/wsl-gui/win10-wsl-setup
https://hub.tcno.co/windows/wsl/desktop-gui