wsl
references:
wsl:
general profile settings in windows terminal
by default:
"startingDirectory": "%USERPROFILE%"
in wsl:
"startingDirectory": "\\\\wsl$\\DISTRO NAME\\home\\USERNAME"
or"startingDirectory": "\\\\wsl.localhost\\DISTRO NAME\\home\\USERNAME"
i.e.:
\\wsl.localhsot\Ubuntu\home\marslo
others:
windows terminal:
install
hyper-v
wsl
more
appx packages
[!NOTE|label:download]
Microsoft-Windows-Subsystem-Linux
or
VirtualMachinePlatform
set version to 2
upgrade
[!NOTE|label:references:]
update to pre-release version
start up WSL
download
rename
init
check
windows feature
appwiz.cpl
windows features
reinstall
uninstall
[!NOTE|label:references:]
destroy distros
uninstall in
Settings
>Apps
>Installed apps
Ubuntu
Ubuntu-22.04.3 LTS
disable in
Start Menu
>Turn Windows Features on or off
Virtual Machine Platform
Windows Subsystem for Linux
or via
reboot
others:
reinstall
cmds
[!NOTE|label:references:]
commands:
wsl --update
wsl --version
wsl --list --running
wsl --shutdown
wsl hostname -i
wsl -d ubuntu
wsl -d Debian -u root
status
check status
set wsl version
set default version
set distros
users
run as root
config default user
shutdown
shutdown and terminate
unregister
disk
export and import
mount
debug
[!NOTE|label:references:]
dump log
host info
powershell
host network
packages
features
[!NOTE|label:list windows features:]
VirtualMachinePlatform
Microsoft-Windows-Subsystem-Linux
services
Host Network Service
wslservices
others
mount
q&a
Error: 0x80040326
Error: 0x80040326
issue
solution
Error 4294967295
4294967295
[!NOTE|label:references:]
check vmcompute
run-detectors: unable to find an interpreter
[!INFO|label:references:]
more
tip
enable windows programe in wsl
append windows path
via regedit
via
wsl.conf
isWsl or isUbuntu
[!TIP]
uname -r
/proc/sys/kernel/osrelease
or/proc/version
enable nvim clipboard
enable vim clipboard
[!NOTE|label:references:]
vimrc
with
wl-clipboard
without
wl-clipboard
wsl.conf
wsl.conf
[!NOTE|label:references:]
restart wsl
setup default bash
[!NOTE|label:references:]
[!NOTE|label:references:]
recover data
[!NOTE|label:references:]
mount
release disk space
[!NOTE|label:references:]
Last updated