Ubuntu – Windows Subsystem for Linux: /home/user (Linux Home Directory Path) to use for ConEmu Terminal

bashcommand linewindows 10windows-subsystem-for-linux

I'm trying to set up 2 terminal location tabs to open in my ConEmu Terminal on Windows 10 (for Windows Linux Subysystem)


1. Windows Home Directory

C:\Users\USERNAME
    or...
%USERPROFILE%

and

2. Linux Home Directory

C:\Users\USERNAME\AppData\Local\Lxss\home\USERNAME
       or...
%LOCALAPPDATA%\lxss\home\USERNAME

The Window Home path works fine, but I'm not sure how to make the Linux Home path work? The closest I can get is to making it open up the root / location.

Does anyone know the right way to do this?

enter image description here

Best Answer

I stumbled upon the article "Bashing Windows" (By: Jan De Dobbeleer),
which led me to this answer.

The main trick is the ~ (tilde) when opening the bash shell.


Home (Linux)

  • BASH (path): C:\Windows\System32\Bash.exe ~ (has tilde ~)

  • STARTUP DIRECTORY (path): C:\Users\<YourUserName>\AppData\Local\lxss\home


Root (Linux)

  • BASH (path): C:\Windows\System32\Bash.exe (no tilde)
  • STARTUP DIRECTORY (path): C:\Users\<YourUserName>\AppData\Local\lxss\root

Home (Windows)

  • BASH (path): C:\Windows\System32\Bash.exe (no tilde)
  • STARTUP DIRECTORY (path): C:\Users\<YourUserName>

enter image description here