User Tools

Site Tools


wsl_cheat_sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wsl_cheat_sheet [2026/08/13 08:37] – removed - external edit (Unknown date) 127.0.0.1wsl_cheat_sheet [2026/08/13 08:37] (current) stephen
Line 1: Line 1:
 +====== WSL Cheat Sheet ======
 +
 +See also [[linux_cheat_sheet|Linux 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 ''-r'' for read only.
 +
 +{{tag>linux}}
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki