Directory locations when using WSL

I'm new to the Ubuntu world and I need some help. (Windows 10, Ubuntu 18.04 LTS, x64 system type) I created a directory called "Submarine" using this :

mkdir Submarine

I want the directory "Submarine" to be located in "Documents" (as circled in red on

enter image description here

But the directory has been located in a whole other place

enter image description here

By the way, if I type :

cd Documents/

The terminal says that there's no such file or directory

enter image description here

What should I do to create files and directories in the place I want ?

4

1 Answer

You have Windows Subsystem for Linux which runs Ubuntu, different from a dual-boot installation where you are running either the Windows OS or the Ubuntu OS. WSL stores anything you make into a directory somewhere under your User directory. That's why your directory placed under c:\Utilisateurs\Elève\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows...

Your Documents folder of Windows actually is c:\Utilisateurs\Elève\Documents .

Specifics on using WSL and creating files and directories are shown in

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like