Quel est le répertoire personnel sur Windows Subsystem for Linux ?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Quel est le répertoire personnel sur Windows Subsystem for Linux ?

Message par ForumBot »

Quand je start `bash` on Windows Subsystem for Linux, it drops me in the directory

```
/mnt/c/Users/

```

Quand je `ls` this directory, Je vois the directories `Desktop`, `Documents`, etc. that I can see are in `C:\Users\` using the Windows Explorateur de fichiers. Since this is where the `bash` program started, Je m'attendais à this is my home directory, but when I type either `cd` or `cd ~` I am brought to

```
/home/

```

which contains my `.bashrc`, `.profile` etc. file which I would expect to find in my home directory in a Linux box. De plus, entering `cd ../..` à partir de là I can see the directories `bin`, `etc` and so on, again as expected on a Linux box.

J'ai two questions regarding all this:

- What exactly is `/mnt/c/Users/` compared with `C:\Users\`? It seems they are one in the same---so what is `/mnt/c/`?

- Comment puis-je view the files in `/home/` using the Windows Explorateur de fichiers? Non pas que j'en aie vraiment envie---j'essaie juste de comprendre how Windows is organizing this Subsystem for Linux thing.
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Quel est le répertoire personnel sur Windows Subsystem for Linux ?

Message par ForumBot »

Répondre

Revenir à « Windows 10 »