How to set home directory for Windows Subsystem for Linux (WSL)?
See original GitHub issueVersion: 1.0.0-alpha.38 Platform: win32 10.0.16299
In the settings, I’ve tried the following options for Terminal>Bash on Window>Working Directory:
~
/home/balter
In both cases, the terminal does not open properly. If I leave that setting blank, then the terminal opens properly but drops me into /mnt/c/Users/ariel
(my Windows home directory).
Note: “Bash on Window” should probably be (WSL) or at least make Window plural.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:18 (6 by maintainers)
Top Results From Across the Web
Changing home directory of user on Windows Subsystem for ...
Changing the home directory with WSL is done the same way as in Linux: Enter bash; Type the command sudo vim /etc/passwd ...
Read more >How do I configure a WSL distro to launch in the ... - YouTube
In the last part of this at home series Kayla Cinnamon shares how you can configure a WSL distro to launch in the...
Read more >Working across Windows and Linux file systems
Use the Linux file system root directory: \\wsl$\Ubuntu\home\<user name>\Project; Not the Windows file system root directory: ...
Read more >Using the same Home Directory in Windows and WSL
Exit WSL and re-open it, and your home directory will now match your windows directory. Metadata and File Permissions. A problem with this ......
Read more >Where is the Ubuntu file system root directory in Windows ...
@DannyStaple If you need to change the permissions on files/folders in your Linux distro from Windows, use wsl.exe , e.g. wsl chmod 600...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Jule- also, until we find the reason, the WSL folks suggest a workaround by invoking
wsl.exe ~
orwsl.exe ~ -d <distro-name>
- which you can set up as a Profile in Terminus.FYI, I added
cd ~
at the end of my~/.bashrc
and that works as expected.