Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [windows-subsystem-for-linux]

Windows Subsystem for Linux (WSL) is a compatibility layer that allows Linux ELF64 binaries to run natively on Windows 10

113
votes
2answers
61k views

How to remove/reset Windows Subsystem for Linux on Windows Insider Build 14316

I installed the Windows Subsystem for Linux on Windows 10 Insider Preview build 14316. Now I would like to remove it or, better, revert to its factory defaults i.e. as it was when just installed. I ...
90
votes
2answers
108k views

How to access Windows folders from Bash on Ubuntu on Windows

On the Bash on Ubuntu on Windows app, I only have root@localhost:~# ls -a .bash_history .bashrc .profile How do I access all of the Windows folders like Documents, Downloads, etc.?
90
votes
5answers
136k views

How can I SSH into “Bash on Ubuntu on Windows 10”?

I have Windows 10 Anniversary Edition with "Bash on Ubuntu on Windows" installed and working. I'd like to be able to SSH into this Ubuntu instance, but although I have openssh-server installed and ...
73
votes
3answers
33k views

How do I change the language of the Linux subsystem in Windows 10 (WSL)?

After installing Bash in Windows 10 I noted that it is using Swedish in the linux applications. My Windows 10 installation is in English. I have tried to reinstall bash after changing the default ...
69
votes
4answers
64k views

Windows Linux Subsystem - Accessing Files outside of Ubuntu

Why, when I create a file from within Windows for example, can I not see it under the Linux sub system in Windows 10 (bash.exe) The screenshot should explain. Folder: OMG was created from within ...
49
votes
6answers
35k views

Windows 10 build 14316: Ctrl + v doesn't work on Bash on Ubuntu on Windows

On the new Windows 10 insider build 14316, I haven't been able to use Ctrl + V (shortcut for paste) on the new Bash on Ubunbu on Windows app. Has anybody else had this issue? Any solutions? I have ...
43
votes
7answers
38k views

How to access linux/Ubuntu files from Windows 10 WSL?

This question answers how to access Windows files from Ubuntu Bash, but how can I do the opposite? Specifically, I need to access my SSH key from Windows which is located at /home/mark/.ssh/id_rsa ...
39
votes
3answers
16k views

Where is the C drive in the WSL? [duplicate]

Whenever I try to login to bash using the Windows Subsystem for Linux, I try to cd into C:\Users\, but all I get is directory not found. Where is the C drive for the Windows Linux subsystem? Is it ...
34
votes
4answers
29k views

How to access network mounted drive on Windows Linux Subsystem?

I have a samba drive which is mounted on my local windows computer. I have a "/mnt/c" drive in WLS ("Windows 10 bash"), but no "/mnt/z". Is there a way to access it somehow? Can I remount it in WLS?
33
votes
4answers
26k views

Is there a way of installing Windows Subsystem for Linux on Win10 (v1709) without using the Store?

The Microsoft Store app is disabled by Group Policy by my university. I have administrator rights on my computer and I was wondering if there was a way of installing Windows Subsystem for Linux (WSL) ...
33
votes
3answers
26k views

Accessing removable media in Bash on Windows

Is there a way to access removable media (e.g. thumb drives or SD cards) from within Bash on Windows? Bash on Windows uses DriveFs to mount fixed drives in the /mnt folder, but it doesn't ...
32
votes
4answers
13k views

How to disable Bash on Windows notification sound effect

When running 'Bash on Ubuntu on Windows' it often generates the Windows notification sound while typing. Common causes are when: I use auto-complete for commands (tab) and there are multiple command ...
31
votes
5answers
33k views

Rebooting Ubuntu on Windows without rebooting Windows?

Is it possible to reboot the Ubuntu sub-system without restarting my system? I tried to use the shutdown command after installing some updates, but that doesn't seem to be an option here.
30
votes
6answers
46k views

What is the home directory on Windows Subsystem for Linux?

When I start bash on Windows Subsystem for Linux, it drops me in the directory /mnt/c/Users/<username> When I ls this directory, I see the directories Desktop, Documents, etc. that I can see ...
30
votes
4answers
17k views

Can I upgrade my existing Ubuntu installation in WSL from 16.04 to 18.04?

I'm currently running Ubuntu 16.04 in WSL (Windows 10 v1709 or later), installed using lxrun. Can I upgrade it to 18.04? If so, how? If not, when?
30
votes
6answers
59k views

How do you change the color scheme in bash on Ubuntu for Windows?

I've tried to create color schemes with https://terminal.sexy and http://ciembor.github.io/4bit/ but I can't get any of their exports to work with bash on Ubuntu on Windows. What's the correct ...
29
votes
3answers
16k views

UTF8 characters in windows 10 bash terminal

I have installed the new bash shell on windows 10. I'm using it together with ZSH. However, none of the utf8 characters work, they appear as square blocks. How do I enable utf8 character encoding in ...
28
votes
2answers
4k views

Where is the Ubuntu console on Windows10? [duplicate]

I updated my Windows 10 system to the 1607 "Anniversary Update" version and I can't find the Ubuntu Bash console. So... Where is it?
22
votes
4answers
21k views

Is it possible to have tabs in the new windows 10 bash terminal?

Is it possible to have tabs in the new windows 10 bash terminal? It would be really useful.
21
votes
2answers
13k views

sudo on Windows 10 Linux subsystem cannot resolve local machine name

I installed Windows 10 Anniversary update and the Linux subsystem. When running anything with sudo it takes ages and then I get this error message: sudo: unable to resolve host MYMACHINE How to ...
21
votes
2answers
19k views

Changing home directory of user on Windows Subsystem for Linux

I'd like to change the home directory of the user that I initially setup on Windows Subsystem for Linux. I found this command sudo usermod -d /mnt/c/Users/Alex alex Which should allow this, however ...
18
votes
3answers
25k views

How to run Ubuntu service on Windows (at startup)?

I want to launch an SSH server on Linux subsystem (Bash on Ubuntu on Windows) at windows startup. The problem is that all Linux processes are terminated when Bash window is closed. Is there a way to ...
17
votes
2answers
6k views

Convert Windows path for Windows Ubuntu Bash

I have a windows batch script that uses Windows Ubuntu Bash. It receives a full Windows path as an argument and then passes that path to a command in Ubuntu Bash. @echo off bash -lic 'ffmpeg -i "%1" ...
16
votes
3answers
5k views

Editing files in a Windows Subsystem for Linux development environment

Windows Subsystem for Linux (WSL) works pretty well for making most commandline Linux tools available and working on Windows without modification. However, it gets a little tricky for development, ...
15
votes
3answers
36k views

How to SSH into WSL

Long-time reader, first-time question-asker. I followed the instructions in this answer: How can I SSH into “Bash on Ubuntu on Windows 10”? I'm attempting to SSH from PuTTY in Windows on the same ...
15
votes
4answers
14k views

Where is the Windows bash directory in Windows?

I've installed the Windows 10 Anniversary Update on my computer. I would like to know where the /root directory in Bash prompt is within Windows? I would like to be able to write files in Bash that ...
14
votes
2answers
15k views

Can't ping in Bash on Windows

When I try to run: ping www.google.com I get the following error: ping: icmp open socket: Permission denied Running with sudo doesn't make a difference.
14
votes
4answers
7k views

Where is the Linux Subsystem's filesystem located in Windows 10?

It's pretty clear that Windows' 10 "host" filesystem is mounted at /mnt/c/ from "Linux" perspective of view. But is it possible to get an access to "Linux" filesystem from Windows? If so, where it is?
14
votes
2answers
12k views

difference between x servers in windows

I'm using Windows 10 Insider Preview with Windows subsystem for Linux enabled I'm wondering what's the true differences between VcXsrv and Xming to view windows from Ubuntu in windows I know the ...
14
votes
2answers
6k views

How to backup (WSL) Linux Subsystem for Windows 10, before system reset or reinstall?

My problem is that I have to reset or reinstall windows because of some problems but I spent a lot of time to configure WSL for development and don't want to lose it. Is there any way of backing up ...
13
votes
6answers
11k views

Update Linux Subsystem on Windows (Ubuntu) to 16.04

Is there any possibility to update LXSS on Windows from 14.04 to 16.04? sudo do-release-upgrade does not work.
11
votes
3answers
11k views

Windows 10 bash and mintty

I just installed the new Linux subsystem in Windows 10. It's really nice to have access to the Ubuntu repositories, but I absolutely HATE the default cmd program. Cygwin's MinTTY is really nice and ...
10
votes
1answer
7k views

Bash on Windows / Windows Subsytem for Linux (WSL) not installing correctly / hangs

I got the windows anniversary update and tried to install Bash. I ran bash from the command prompt (non-admin mode) and it got stuck while trying to extract the files. I closed the window and tried to ...
10
votes
3answers
1k views

What causes strange CPU usage output of htop in Bash on Windows

When I run htop in Bash on Windows I get the following output regarding CPU usage: while the Windows Task Manager shows around 1% usage. From here it's clear that htop's red regions are supposed to ...
9
votes
5answers
12k views

Running a bash background process on Windows 10 without an open terminal

I usually use the linux subsystem when I'm programming anything on Windows 10 so all my paths are relative to ~. I have a python script that runs forever in the background until I kill the process. ...
9
votes
3answers
5k views

How to change default shell for Linux susbsystem for Windows

I've installed Linux subsystem for Windows 10. It works fine, but I want to change the default shell environment for the subsystem. I did sudo apt-get install fish and then chsh -s /usr/bin/fish. ...
9
votes
2answers
5k views

Can I get (the new) bash on Windows 10 to load .profile

I installed the Ubuntu (Bash) Linux on Windows 10 (which comes with the Windows anniversary update), and started playing around with it. What I noticed is that starting the shell (ubuntu bash) does ...
9
votes
5answers
7k views

WSL(ubuntu/windows) AppData\Local\Lxss doesn't actually sync back to ubuntu, ideas?

If you create a file in bash (touch /root/foo.txt) that appears in the hidden directories in AppData\Local\Lxss\ modifying it there does not change it in bash. Worse if you change it again in bash ...
9
votes
2answers
13k views

Is it possible to run networking commands like nmap in WSL?

I recently got the Windows 10 anniversary update and installed bash. I tried installing nmap, but it wouldn't run. My question: Is there any way for commands like nmap to correctly run in WSL? ...
8
votes
3answers
6k views

How can I “open” a file from WSL with the default application?

Most systems provide an open command (alternately known as start, cygstart, xdg-open etc.) which opens a file in the desktop environment's "default" application, whatever that is. For example, from ...
8
votes
3answers
7k views

Bash on Ubuntu on Windows: Can't change (some) directory colors

On the new Bash on Ubuntu on Windows (10) app, I have tried to change the directory colors from blue to some thing more visible but haven't been able to change some file/directory colors for some ...
8
votes
3answers
5k views

How to use the windows installation of java from BashOnWindows10?

I'm not able to run the windows version of java.exe from BashOnWindows10. It is present in PATH, but the invocation fails silently. My goal is to avoid having to install the JDK/JRE again in WSL. As I'...
8
votes
3answers
11k views

BASH on Ubuntu on Windows (AKA Linux Subsystem for Windows) 10 - How do I set my PATH?

Thanks to the Anniversary Update, I now have BASH on Ubuntu on Windows 10. Previously, I used Cygwin, and had set up Maven in Cygwin, (and got it fully working), which largely consisted of installing ...
8
votes
2answers
10k views

Windows 10: Developer Mode package failed to install. Error code 0x80004005

Attempting to activate developer mode so I can access the Linux Subsystem feature. Upon switching to developer mode, I receive the error in the title and am subsequently unable to locate the package ...
8
votes
1answer
789 views

Issues editing files with nano in Bash/Windows 10

I'm having display issues whenever I edit files with nano in Windows 10 Linux Subsystem. I will connect to a remote system (local CentOS7 VM on Virtualbox) using Bash/SSH. Then, I'll proceed to edit ...
7
votes
3answers
17k views

How to sign into “root” account by default on Windows Subsystem for Linux Bash terminal

Windows 10's Anniversary Update just came out and I immediately installed the Windows Subsystem for Linux to see how it fares. I found only one major shortcoming so far: there was no obvious way to ...
7
votes
2answers
9k views

How to add a Windows path to the Windows Ubuntu Subsystem path

I have a folder in my F drive and I want the bash on Windows Ubuntu Subsystem to point to it. The Folder is F:\Projects\Phrasal I am not sure how to add the Phrasal directory to my Shell path in ...
7
votes
1answer
9k views

How to access localhost of linux subsystem from windows

I am using windows 10 and I have ubuntu 16.04 installed as linux subsystem. I am running a rails app on port 4567, which I want to access from windows. I know an approach of using ip address, but ...
7
votes
1answer
6k views

Is there reason to use Cygwin over Bash on Ubuntu on Windows 10?

Installed Cygwin a few years ago for things like grep, git and basically anything that works well in the bash commandline. installed the Bash on Ubuntu on Windows 10 program recently and it's ...
7
votes
1answer
5k views

What size does basic Bash/WSL subsystem on Windows occupy?

How much space does the Windows Subsystem for Linux (also called Ubuntu BASH on Windows) take up on my hard drive? I'm a bit low on space and want to know whether it would even fit.