User Tools

Site Tools


wsl_cheatsheet

Differences

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

Link to this comparison view

Next revision
Previous revision
wsl_cheatsheet [2024/07/30 00:20] – created stephenwsl_cheatsheet [2024/07/31 21:52] (current) stephen
Line 1: Line 1:
 ====== WSL Cheatsheet ====== ====== 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 ===== ===== Accessing drives =====
Line 9: Line 18:
  
 Edit your ''.bashrc'' file, it will be ''\\wsl.localhost\Ubuntu\home\<you>\.bashrc'', append whatever you want to the bottom. Edit your ''.bashrc'' file, it will be ''\\wsl.localhost\Ubuntu\home\<you>\.bashrc'', append whatever you want to the bottom.
- 
-===== List files properly ===== 
- 
-The command you want is ''ll'' which is an alias of ''ls -alF''. 
- 
  
wsl_cheatsheet.1722298847.txt.gz · Last modified: 2024/07/30 00:20 by stephen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki