0

I am brand new to using the command line so bare with me. I am not able to access my Desktop from my root directory. The furthest I can get is /home/sam and then there isn't anything from here. I have tried /home/SAM/Desktop and starting from /. The only way I can access folders is using /mnt/c/Users/Sam/Documents/ - however I believe this is storing items in a mounted drive, which is causing my endless problems when trying to run repositories via VS Code. Any help appreciated!

SamR232
  • 3
  • 1
  • You might be able to give help if you provide some info on how your ubuntu runs. Is it ubuntu inside a VM or some kind? Or via the Ubuntu app on Windows? – Kai Jan 28 '22 at 11:32
  • Apologies - via the app on windows – SamR232 Jan 28 '22 at 11:41
  • If I'm not mistaken, the /home/SAM folder doesn't correspond to your windows desktop folder if you're using the WSL (windows subsystem for Linux; I'm guessing that's what you're using), as the WSL is virtual machine you have just installed and doesn't contain anything (still has no data). The easiest to find your stuff in the WSL's ubuntu would be to create symbolic links to wherever you want to find the rest of your data, but the WSL won't "transcribe" your data into the linux virtual machine "out of the box" – Guillermo J. Jan 28 '22 at 12:04

1 Answers1

0

This question describes a lot about how the 2 filesystems overlap with each other. A trick I tried was setting your $HOME variable to /mnt/c/Users/Sam/Documents/ or creating a symlink in /home/sam that points to that C share:

ln -s /mnt/c/Users/Sam/Documents/project.git /home/sam/project.git

That saves you some typing.

Kai
  • 138