Jump to content

I played with WSL1 on Windows 10 a while back I don't know how the GUI changed in WSL2 and/or Windows 11 but assuming you installed it from the Microsoft Store you should be able to access it from there. You might find an option from there to add it to the start menu if desired. I know it was in the start menu with WSL1/W10.

Link to comment
https://linustechtips.com/topic/1389900-cant-open-linux-shell/#findComment-15112920
Share on other sites

Link to post
Share on other sites

16 minutes ago, TCG_Infiniti said:

I can open ubuntu fine, but I need to open a certain folder in ubuntu. Is there a command that could do this for me?

Not sure if I'm explaining this well at all

Not from the Terminal but from the Windows Desktop or PowerShell you want the default directory to drop you somewhere specific? I believe it drops you in /home/user by default.

 

Is this a specific folder you need to open repetitively? To navigate to it manually you can always use the cd [path] command otherwise you could write a single line script and just execute that when the Terminal loads.

Link to comment
https://linustechtips.com/topic/1389900-cant-open-linux-shell/#findComment-15112953
Share on other sites

Link to post
Share on other sites

2 hours ago, TCG_Infiniti said:

I can open ubuntu fine, but I need to open a certain folder in ubuntu. Is there a command that could do this for me?

Not sure if I'm explaining this well at all

Try checking Windows Terminal to see if there is an option for the linux distro tab to be opened.

Link to comment
https://linustechtips.com/topic/1389900-cant-open-linux-shell/#findComment-15113185
Share on other sites

Link to post
Share on other sites

10 hours ago, TCG_Infiniti said:

I have WSL installed. I've restarted after install. It shows windows powershell as an option, but not ubuntu. Windows 11 btw. I'm about to take my PC into the backyard with a bat and start swinging.

Thanks in advance!

Just to be sure we are on the same page:

  • You went to "Windows Features" panel, and check the box 
    "Virtual Machine Platform", hit OK, let it do its thing, and restart when/if asked
  • You open the Store app, and you looked for Ubuntu, and you installed it.
  • You open the Start menu > All apps > picked: Ubuntu to go through the first time setup

If you have done so, in order:

When you open the Windows Terminal, under the down arow, next to the "+", you should have the option "Ubuntu".
 

Like so:

1297143472_Screenshot2021-11-20234351.png.adc9610b421b3d82a110dee956d5a67a.png

 

If you pick it, it will open Ubuntu.

In Widows Terminal, you have Settings to adjust the font, its size, and can even set it up as default (instead of PowerShell) if you prefer.

 

To access it's fines, under ubuntu, you can do:

explorer.exe .

which will open file explorer where you are in under Ubuntu world.

 

Or you can open File explorer, and in the address bar enter, and hit Enter (or press the "→" button)

\\wsl.localhost\

or

\\wsl$

(both are the same)

 

File Explorer SHOULD have "Linux" appear on the navigation pane under File Explorer, but only does if WSL is install in the old way. The new method is easier, but for some reason looses this. Until Microsoft fixes that, just add the path to the quick links section under the navigation pane.

 

DO NOT ACCESS Linux files from Windows outside of the root path of Windows.

Meaning if you access Linux files through: C:\Users\<account name>\AppData\etc... instead of \\wsl$\Ubuntu\<path>, then anything you'll save inside will be corrupted. You can break your WSL environment or lose work.

Link to comment
https://linustechtips.com/topic/1389900-cant-open-linux-shell/#findComment-15113736
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×