Directory Locations When Using Wsl

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

But the directory has been located in a whole other place

By the way, if I type :

cd Documents/

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

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

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

Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.