Source: superuser.com. @Eugeny This configuration puts your working directory (where you check out code and work on it) outside WSL’s file system, leaving only bash config files inside. If the file is missing or malformed (that is, improper markup formatting), WSL will continue to launch as normal. “wsl home folder location” Code Answer. There are a few command-line tools available on your Windows 10 computer and in most cases, the default directory for the tool is the user’s profile location. Well, there is an infinite number of workarounds in Linux. You can edit Windows 10 files in both Win10 and WSL, but you can’t edit WSL files in Windows 10. Copy and paste explorer.exe . I will also note WSL needs UTF-8 rendering improvements. Your Windows system drive and other connected drives are exposed in the /mnt/ directory there, where other drives are traditionally made available in the Linux directory structure. You can work with files normally from here, even open them directly in Windows applications to modify them. This environment variable points to the Linux /home/ubuntu directory from both Windows and WSL Ubuntu. On mine the directory names start with CanonicalGroupLimited.UbuntuonWindows and 46932SUSE.openSUSELeap42. WSL instances are so cheap to run on the system that I’m currently running Ubuntu and openSUSE sessions side by side, just to avoid the relatively minor hassle of configuring different SSH keys. From: https://stackoverflow.com/questions/46820268/where-has-c-users-username-appdata-local-lxss-gone-under-windows-fall-creator. Apple still ships Bash 3 (released in 2007), generally thought to be a result of the company's open source licensing policy. The disks paths are available under the ‘DeviceID’ columns. Often more time trying to keep things working than getting work done. A few tips for WSL: Your WSL home directory displays as /home/(username)/, with the full location being C:\Users\(windows username)\AppData\Local\lxss\home\(bash username) Drives are accessed under /mnt eg. Thank you for your contributions. The good news is you have absolutely no need to switch between the two for dev tools. Edit: Using the suggested workaround works fine. From within the Windows Subsystem for Linux environment you want to browse, run the following command: explorer.exe . PACKAGEDIR will include the package name and some ugly installation hashes. To make this the default in Windows Terminal, open the Windows Terminal Settings, find your WSL2 profile, and add “commandline”: “bash.exe ~” If WSL’s root directory moves for some reason, a simple trick is to create a distinctly-named file in your home directory (eg. Excuse me for the naive question: how can I set a custom profile this way? The project itself has changed my expectations of Microsoft. I have a bash OS detection script on Bitbucket if you need it. When Microsoft opened their console improvement project to feedback, the message was overwhelmingly 'give us bash’. Get rid of the default /mnt/c/Users/YourName directory in the WSL 2 prompt. Already on GitHub? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Recent backpedalling aside, can you imagine that happening in the Ballmer era? The lxss is the Linux/Ubuntu file system root directory. I have a bunch of shortcuts already configured on my WSL home directory (the location the default Ubuntu app opens on). So ensure you just check the common substring: I have a WSL compatible git bling script on Bitbucket if you need it. Navigate the root directory or top folder inside of the Terminal. Since the Fall Creators Update in October 2017, MS have deprecated the old version of WSL. The lxrun.exe was the first command used to install and manage the Windows Subsystem for Linux. Platform: win32 10.0.16299. I also enjoy the sheer strangeness of Microsoft putting Linux on the desktop for millions of people. Before installing WSL, make sure that your computer meets the minimum system requirements to run WSL: 1. Oh ok no problem, thank you for the information. This is not something I’d do with full VMs. Don’t use your WSL home directory as that crosses the file system boundaries. Sorry you have done really good work! In order to run WSL2 you need to be a Windows Insider and be on at least on version 18917 or higher. Now, for launch – run the following command, modified with the name of your keyfile/planet: $> ./urbit/urbit -w sampel-palnet -k ~/sampel-palnet-1.key If you’ve pointed the command at the correct location for the binary, your planet should boot! How to set home directory for Windows Subsystem for Linux (WSL)? 16 votes, 17 comments. There’s a full change list in Microsoft’s blog post but some key things to note…. They were steadily added to Insider Preview builds, and eventually released to mainstream Windows 10 in April 2017. By WSL files I mean files contained within the WSL file system, located at: C:\Users\WINDOWSUSERNAME\AppData\Local\Packages\PACKAGEDIR\LocalState\rootfs\ ...noting your home directory is home\LINUXUSERNAME under rootfs. Specifically, you’ll find the C: drive at the following location in the Bash environment: /mnt/c. Successfully merging a pull request may close this issue. In practice it doesn’t matter. 1. But it is not natural and putting /home/jule in Terminus working directory setting breaks the terminal. You can get distro details by running cat /etc/*-release. I was one of many who gave feedback, although I have to admit I didn’t hold out any real hope. 2. You can still provide feedback on UserVoice too. You signed in with another tab or window. WSL seems to have reached a milestone from Microsoft’s point of view, as they’ve made some organisational changes aligning WSL with Hyper-V and Containers. By WSL files I mean files contained within the WSL file system, located at: ...noting your home directory is home\LINUXUSERNAME under rootfs. It's actually OSX that lags behind for bash. Open your Settings. And I open a new terminal for ubuntu. To change to this directory with the cd command, just type: cd /mnt/c Paste the keyfile, and open your WSL command line again. You can update individual systems to Bash 4, but it doesn't help because any shared script still needs to be Bash 3 compatible. This mostly matters because it was really hard to google anything about it. There you’ll see your Windows version: To run WSL2, you’ll need to enable to additional Windows features: Hyper-V and WSL. Hopefully this will be resolved in future, even if only in headless browsers; or perhaps with ways to get GUI browsers running inside WSL. Don't know which version you are talking about but I have still some issues. wsl.conf is located in each Linux distribution in /etc/wsl.conf. The root folder stores the root account’s data files. The WSL project has been open and responsive – raise or comment on an issue in github and you’d see direct feedback from the team, usually within a few days. Have a question about this project? But WSL is going to be a huge use case for Terminus. It's easy to be cynical, but devs asked for bash and Microsoft were willing to put Linux into Windows to do it. This sounds like the big initial push is done and WSL will be in more of a business-as-usual mode from here on. Yes. Configure a working directory in the Win10 file system and you’ll be fine. This will launch File Explorer showing the current Linux directory—you can browse the Linux environment’s file system from there. While I ran my server with localhost, the client failed to connect localhost. The WSL+Win10 developer experience is broadly the same as OSX+Terminal, although Microsoft is also integrating WSL with Visual Studio for those who prefer the Microsoft GUI dev style. Open the lxss and there are many folders listing within this directory. Put these details in your password safe, you, Git clone, install and run your app in the CLI (WSL), Use Win10 for a GUI text editor and browsers, Create a working directory outside WSL. And when you modify your .bashrc in order to have yarn binaries in the path like this: Then when your .bashrc is executed in your Windows home directory you will have in your WSL path the first wrong scoop form (/mnt/c/Users/jule/C:\Users\jule\scoop\apps\yarn\current/bin) instead of the second one (/home/jule/.yarn/bin). whatever by Cheerful Cat on Feb 23 2020 Donate . The recent Terminus versions will let you pick a working directory inside WSL rootfs if you're using the "browse" button near the input field. This issue has been automatically marked as stale because it has not had recent activity. *global" | sed -E "s/inet (.*)\/. WSL is a serious option for development. To get both up and running, look for “Turn Windows features on or off” in the start menu: In that window, make sure to select both HyperV and Windows Subsystem for Linux. ). It doesn’t matter for common dev tasks, but might be a problem if you rely on a lot of unusual characters. Open WSL terminal. @Jule- also, until we find the reason, the WSL folks suggest a workaround by invoking wsl.exe ~ or You actually do have to reboot for this one. You have to enable hidden files and folders to get there, as \AppData\ is hidden. Sorry for not responding in this ticket. (optional) Make a backup of your home directory: Reboot. If a Windows application (e.g. FTR, this is problematic when you have some binaries present in the Windows environnement that can be reached in the WSL environnement. From the WSL, your C:\\ directory in Windows is called ‘/mnt/c’. That makes it much lighter than a VM as you’re not running entire virtualised operating systems. You can edit Windows 10 files in both Win10 and WSL, but you can’t edit WSL files in Windows 10. You can also access them directly at a \\wsl$ path. Good news - WSL2 now supports setting any CWD when starting a shell. Note – this post is an updated, self-contained guide to using WSL on Windows 10. It shown the /mnt/c/users/victor.And I set the ubuntu as default launching. I did not try to change the path of my Home folder, but since the "C" or "D" drive (local disk only, not network) can always be reached via the "/mnt/c" or "/mnt/d" path, I assume you can change HOME variable.