Skip to content

Instantly share code, notes, and snippets.

@peteristhegreat
Created January 19, 2022 06:41
Show Gist options
  • Save peteristhegreat/52e5f7dfd3b6126c9c0d5dd950f8b120 to your computer and use it in GitHub Desktop.
Save peteristhegreat/52e5f7dfd3b6126c9c0d5dd950f8b120 to your computer and use it in GitHub Desktop.
WSL in Windows 11

Its super easy now!

Right click on the windows logo, open the link for Windows Terminal (Admin)

In a Windows Terminal (Admin)

wsl --install

And then reboot your computer and it should be available.

The first time or two, it was part of the powershell. Now it exists as an app in the Microsoft App Store.

Download and install Ubuntu from here:

https://www.microsoft.com/en-us/p/ubuntu/9nblggh4msv6

After it installs, click open, and then you are in a ubuntu terminal session. Set up your default user that gets sudo powers.

Then update your apt repos to get going.

sudo apt update

For new users of bash and linux terminal commands and programs, I recommend using tldr

sudo apt install tldr

Now when you come across a command that you aren't sure about run tldr xxxxx where xxxxx is the command you are learning about.

There is now a dedicated menu in Windows for the linux stuff in the bottom of the Windows Explorer navigation under Linux.

You can also type in the address bar to find it with:

\\wsl$

Also consider grabbing a decent dotfiles folder when getting started.

https://dotfiles.github.io/inspiration/

I'm a fan of https://github.com/mathiasbynens/dotfiles

which installs quickly with

cd
git clone https://github.com/mathiasbynens/dotfiles.git && cd dotfiles && source bootstrap.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment