0

I have microsoft 10. I just downloaded the ubuntu app from the microsoft store. I just created a directory called prep-work in ubuntu's shell. I then went to visual code and made notes about a program that is linked to the ubuntu shell (or prep-work directory). However, when I go to the search directory and go into the file explorer I cannot find the ubuntu file at all. I know the file exists because when I try to make the prep-work file again in Ubuntu's shell, it says it cannot do so because the file already exists. How can I locate this file?

also, what is the command I can use to make sure that I am in the prep-work directory? when i type the command pwd i cannot tell if I am in there or so. I am confused.

Please help. Thank you

westna
  • 23

1 Answers1

2

It looks like you installed Ubuntu as a WSL (Windows Subsystem for Linux) version 2 instance. The Ubuntu filesystem of such an instance is stored in a virtual disk which is visible in Windows as a single container file %LOCALAPPDATA%\Packages\%Distribution%\LocalState\ext4.vhdx (where %Distribution% is the internal Microsoft package name of the Ubuntu Release you chose.)

The individual Linux files are therefore not directly visible from Windows. You can access them through the special network node \\WSL$ provided for that purpose. For example, to access my home directory in the Ubuntu 20.04 WSL2 instance I have on my Windows 10 notebook I navigate to \\wsl$\Ubuntu-20.04\home\tilman in Windows Explorer.

Tilman
  • 3,769