wsl_cheat_sheet
This is an old revision of the document!
Table of Contents
WSL Cheat Sheet
Windows Commands
wsl –install | Install WSL. |
wsl –list | List installed Linux flavours. |
wsl –install -d ubuntu | Install Ubuntu. |
wsl -s ubuntu | Make Ubuntu the default. |
Accessing drives
- In WSL, accessing Windows drive:
/mnt/c/Dev - In Windows, accessing WSL:
\\wsl.localhost\Ubuntu\home
Mount a Windows Drive
- Get drive info:
sudo fdisk -l, look for something like/dev/sda4. - Make a directory to mount it to:
sudu mkdir /mnt/windows. - Mount it:
sudo mount -t ntfs-3g /dev/sda4 /mnt/windows. Add a-rfor read only.
wsl_cheat_sheet.1786610223.txt.gz · Last modified: 2026/08/13 08:37 by stephen
