wsl_cheatsheet
Table of Contents
WSL Cheatsheet
Commands
Windows: wsl –install | Install WSL. |
Windows: wsl –list | List installed Linux flavours. |
Windows: wsl –install -d ubuntu | Install Ubuntu. |
Windows: wsl -s ubuntu | Make Ubuntu the default. |
WSL: sudo apt-get update && sudo apt-get install -y dotnet-sdk-7.0 | Install Dotnet on WSL. |
WSL: ll or ls -alF | List files properly. |
Accessing drives
- In WSL, accessing Windows drive:
/mnt/c/Dev
- In Windows, accessing WSL:
\\wsl.localhost\Ubuntu\home
Run commands on Bash start up
Edit your .bashrc
file, it will be \\wsl.localhost\Ubuntu\home\<you>\.bashrc
, append whatever you want to the bottom.
wsl_cheatsheet.txt · Last modified: 2024/07/31 21:52 by stephen