Questions tagged [windows-subsystem-for-linux]

Use this tag for questions about the Windows Subsystem for Linux, including Bash on Ubuntu on Windows and other distributions running under WSL.

Filter by
Sorted by
Tagged with
0 votes
2 answers
1k views

How does one properly call multiple cat commands from a single bash script?

I am trying to collect text files from multiple subdirectories and concatenate them into a single file per subdirectory. There may be a much better way of doing this but my question is, how does one ...
Nathan's user avatar
  • 113
1 vote
1 answer
823 views

Fuse not Loaded When Trying to Mount

I'm trying to execute this command in terminal: sudo mount -t cvmfs <repository> /mnt/cvmfs and I keep getting Fuse not loaded returned to me. I'm not quite familiar with what this fuse in ...
David G.'s user avatar
  • 187
6 votes
1 answer
5k views

Ubuntu for Windows -- Can't open PDF files via xdg-open

My default application for opening PDF files is Adobe Acrobat XI Pro. I would like to be able to open PDF files using this program via the Windows Subsystem for Linux. Currently when I run xdg-open ...
Abraham's user avatar
  • 161
0 votes
0 answers
266 views

WSL Ubuntu 18.04 shows wrong Cpu_allowed mask

Ubuntu 18.04 running under WSL detects my CPU wrong: $ cat /proc/self/status | grep Cpus_allowed Cpus_allowed: 00000001 The CPU is an i7-4510U (2 cores/4 threads) so I expected: Cpus_allowed: f ...
Ole Tange's user avatar
  • 33.2k
2 votes
3 answers
2k views

Why can't I delete this directory?

What is going on here? dave@dave-desktop:/mnt/w/Source/Sign/dist$ ls -la total 0 drwxrwxrwx 1 dave dave 512 Feb 27 08:55 . drwxrwxrwx 1 dave dave 512 Feb 27 09:09 .. drwxrwxrwx 1 dave dave 512 Feb 27 ...
Dave's user avatar
  • 275
1 vote
0 answers
675 views

multi-core CPU usage

I am using the Windows Subsystem for Linux (WSL). Recently, I've been wanting to get better insight in the CPU usage of processes, but I am getting well confused. I am on a computer with 2 cores and ...
Barbaud Julien's user avatar
4 votes
5 answers
24k views

Editing text files in WSL with Notepad++

I use WSL (Windows Subsystem for Linux) with Debian, which provides a simple cmd interface. I'd like to open files in Notepad++, which is installed on the Windows side of this PC. is this possible? ...
Colin m Gilker's user avatar
2 votes
1 answer
1k views

Unable To Rename Directory With Open File Handle

On Windows 10 within my Ubuntu Subsystem, when I open a file in a directory and try to rename that directory while that file is open, I am unable to do so. Example: $mkdir demo $touch demo/test.txt $...
Howard_Roark's user avatar
1 vote
0 answers
90 views

Backup and Sync from Linux to a WSL live (per each change) [duplicate]

I have a Linux (Arch/Debian) with only a CLUI (Bash) and a server environment (LAMP) with the following details: 4 GB RAM 2 vCPU Cores 80 GB SSD 4 TB Transfer 40 Gbps Network In 4000 Mbps Network ...
user avatar
-6 votes
1 answer
2k views

Why I can't switch from super user to regular user with su username? [closed]

I'm trying to switch to normal user but it doesn't work I just want a dollar sign instead of the hash... root@username:~# su username No passwd entry for user 'username' I'm on Windows on Ubuntu ...
Fotios Tsakiris's user avatar
0 votes
0 answers
64 views

Trouble getting to Desktop directory, with Bash on Microsoft's Windows (WSL)

I'm using the Bash terminal for Windows and currently this is what I get when I type ls -a <username@userPC>:/$ ls -a . bin data home lib64 mnt root srv usr .. boot dev init lost+found opt run ...
Onur-Andros Ozbek's user avatar
0 votes
1 answer
91 views

Is it safe to format C: drive in order to deploy Linux on a Windows 10 machine?

I have deployed several distros on Windows, such as Open SUSE Enterprise Server 15, Kali, and Ubuntu, but want to turn my currently Windows 10 machine to a Linux machine. Is Virtual Machine the ...
Angelfirenze's user avatar
0 votes
1 answer
4k views

Windows Subsystem for Linux: apt update error in Kali [duplicate]

I'm having trouble with the command: sudo apt-get update ,when I run it, I get the following message: Err:1 http://http.kali.org/kali kali-rolling InRelease Connection failed [IP: 192.99.200.113 80] ...
Enzo's user avatar
  • 101
0 votes
1 answer
59 views

Developing Mozilla Firefox for Linux on Windows

I would like to make some contribution to Mozilla Firefox (with the little C++ I know). Can I build, run and debug Firefox for Linux using WSL (Windows Subsystem for Linux) ? If yes, should I install ...
rranjik's user avatar
  • 113
1 vote
1 answer
2k views

Implications for deleting files using WSL

Are there any downfalls to using WSL to delete files (e.g. rm someFile) on the regular Windows file system (mnt/c)? Likewise, is there a downfall to using Windows to delete (for example by 'right ...
Jet Blue's user avatar
  • 129
0 votes
1 answer
3k views

airmon ng ls: cannot access '/sys/class/ieee80211/': No such file or directory

Im using ubuntu bionic (UBUNTU WSL) I can't use airmon-ng! It throws the following ls: cannot access '/sys/class/ieee80211/': No such file or directory I checked airmon-ng: ls: cannot access '/...
AliFurkan's user avatar
  • 113
0 votes
1 answer
8k views

Does windows subsystem for linux detects usb wifi adapter? [closed]

I am thinking of buying a usb wifi adapter but i'm not sure if it'll be useful when im using wsl
Jacobs Naskzmana's user avatar
2 votes
2 answers
8k views

"dd" an image onto an sd-card from Ubuntu in Windows Subsystem for Linux

I have a bootable disk image file that I'd like to write onto an sd-card. However, I only have a Windows 10 machine available - it has the Windows Subsystem for Linux already installed, Ubuntu runs, ...
Hannah Vernon's user avatar
-1 votes
1 answer
3k views

Permission denied: cannot create /dev/null

I've been trying to get the github commit chart hack to work for like a week now. this one https://github.com/mavrk/github-graffiti and this one https://github.com/gelstudios/gitfiti and this one ...
Raksha's user avatar
  • 119
-2 votes
1 answer
164 views

Windows Subsystem for Linux home versus Windows Environment home [closed]

I've been trying to get it to connect to my github, but keep getting an error. I think it thinks I'm a different user :( ... (don't ask why i have two similarly named users, i don't even know anymore.....
Raksha's user avatar
  • 119
2 votes
1 answer
2k views

SSH In Windows 10 Bash(Ubuntu)

I'm trying to turn my Windows 10 desktop into a secure ssh server. sshd is running but I can't get any of my other computers to connect to it. I'm using passkey authentication with ed25519. I'm using ...
user21303's user avatar
  • 165
6 votes
1 answer
10k views

site-packages directory not found after installing pip3 with apt-get in Ubuntu WSL

I installed python 3 and pip into in Windows System for Linux shell, but it appears I have to find and specify site-packages directory manually if I want to run any python package executables. The ...
Evgeny's user avatar
  • 171
0 votes
1 answer
3k views

Can't access SSH server running in WSL [closed]

Basically I have enabled a SSH server in Kali WSL Linux. The problem is that when I do ssh root@192.168.0.225 from Windows and provide the password, it works just fine and the connection succeeds. ...
Temmp's user avatar
  • 29
-1 votes
1 answer
2k views

Colors in Terminal and VIM with Windows Subsystem

I'm running Debian GNU/Linux through the Windows Subsystem, and I thought it was pretty cool. However, I'm having issues setting up colors in my terminal and VIM. I used to use Ubuntu as a thing to ...
BestQualityVacuum's user avatar
2 votes
3 answers
24k views

Default password for Kali Linux on Windows 10?

What is the default password for Kali on Windows 10 via Windows Subsystem for Linux?
XoOoRo Z's user avatar
0 votes
0 answers
233 views

WSL: Redirect links to host

As Windows is missing a nice twitter client I'm using WSL, with X11 forwarding to get Corebird running on my Windows 10 host. The question is: Is it possible to redirect the click on a link within ...
MemphiZ's user avatar
  • 147
5 votes
1 answer
673 views

Attempting to run a regular tunnel in Debian version 9.5 Linux

I entered the following line in the modules.conf file under the /etc/modules-load.d/modules.conf path: alias char-major-10-200 tun And then I typed the following command from the Debian 9.5 Linux ...
user avatar
0 votes
1 answer
3k views

Escaping ampersand (&) in URL in Bash under WSL

I'm trying to write a Bash function which will take some arguments from the command line and put them in a URL which contains URL parameters (i.e. contains ? and &). If there is only one ...
Jamy Mahabier's user avatar
2 votes
1 answer
7k views

creating alias in bashrc in wsl [duplicate]

I'm trying to create alias for for cd command to AppData and %programdata% folders but I got path not found while if I write manual it works, here is what I'm doing: In .bashrc I do alias client= '...
Oggy's user avatar
  • 67
4 votes
3 answers
6k views

`ls` Attemptes to list nonexisting symbolic links on WSL

I have clean installed windows 10 (build 1803). I have installed Ubuntu from the Microsoft Store and enabled Linux subsystem. I have done this several times in the past, and never have I had the ...
Ptheguy's user avatar
  • 205
4 votes
1 answer
790 views

SSH linux subsystem windows 10

I can ssh the linux inside my windows 10, I usually use securecrt and I configured port 9999 , however once close the bash terminal, the SSH terminated and I get The remote system refused the ...
Oggy's user avatar
  • 67
1 vote
3 answers
8k views

Bash For loop not working

I am trying to execute this simple bash script but I am getting a syntax error. I followed this simple documentation here https://www.cyberciti.biz/faq/bash-for-loop/ but no luck. I am not sure what ...
Aftab Naveed's user avatar
13 votes
2 answers
9k views

Passing command to bash from cmd.exe (WSL) not working

I'm on a Windows 10 machine with Windows Subsystem for Linux enabled/configured (Ubuntu). To explain my problem let me present you with two scenarios: Scenario 1: I start a cmd.exe prompt I run bash ...
fnery's user avatar
  • 351
4 votes
3 answers
8k views

lsmod gives error: "could not get list of modules" on Debian running on WSL

When I run lsmod or sudo lsmod, I get an error that says: libkmod: ERROR ../libkmod/libkmod-module.c:1655 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory Error: ...
m0mosenpai's user avatar
4 votes
4 answers
19k views

Repositories for apt-get source in WSL

I'm looking to apt-get the source code of packages in WSL. $ apt-get source bash Reading package lists... Done E: You must put some 'source' URIs in your sources.list These are the default sources ...
elig's user avatar
  • 531
0 votes
1 answer
584 views

How to capture a changing one line program output?

A program outputs various data lines to the same line in a timely order, overwriting the line in each line write. How can I capture all of its output lines and write them to a file separated by ...
elig's user avatar
  • 531
0 votes
1 answer
5k views

ssh into two different machines on same network [closed]

I have a ssh-enabled machine on my home wifi that I am able to ssh into. I recently got the Linux Subsystem for Windows and I want to remotely ssh into that as well. Both machines have an static ip ...
pianoman102's user avatar
0 votes
1 answer
910 views

Change PS1 in .bashrc so that the following directory path is shown:

A little background: I am running Windows 10, have installed git bash, and created the .bashrc file. Right now in my .bashrc, I have the following line: PS1='\w\> ' So suppose I am on my ...
K Split X's user avatar
  • 1,553
1 vote
0 answers
1k views

CentOS on WSL--typing too fast?

I am using zsh with WSL/CentOS. I am somewhat of a fast typist, and WSL can be slow. I am facing a weird issue where if I am running a command and begin typing the next command before the first ...
2ps's user avatar
  • 111
4 votes
1 answer
1k views

Way to bind ALT-F4 to exit in Bash (Bash on Ubuntu on Windows)

Really simple question. I know I can exit bash with "exit", CTRL-D, etc, and yes I know I'm using a Linux (sub)system, but when I'm on windows ALT-F4 is second nature. Naturally, I'm on windows when ...
Andrew Baumher's user avatar
3 votes
3 answers
15k views

not able to open terminator in bash windows 10

When opening terminator from my bash Windows 10, I am getting this error /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display warnings.warn(str(e), _gtk....
user3015200's user avatar
2 votes
1 answer
1k views

OpenZFS on Windows Subsystem for Linux

Has anybody seen or tried running OpenZFS under Windows Subsystem for Linux? I know that someone is working on a windows port of OpenZFS, but it would seem that using the Linux port would be much ...
Timothy C. Quinn's user avatar
2 votes
1 answer
663 views

package ia32-lib is not available on Windows Subsystem for Linux

I'm trying to install Red http://www.red-lang.org/p/download.html on WSL (I'm using on Windows 10 Pro). After typing sudo apt-get install ia32-libs libc6-i386 libcurl3 In the end I got the message ...
user310291's user avatar
4 votes
3 answers
3k views

Open file behavior using Ranger in Windows Subsystem for Linux

I am using Microsoft Windows ([Version 10.0.15063]) subsystem for Linux and observe an unexpected behavior when opening files using Ranger file manager in bash. For example, I have ~/.config/rifle....
gpanda's user avatar
  • 141
1 vote
2 answers
11k views

Issues exporting X11 display while using SSH from Ubuntu for Windows

I am using the native Ubuntu terminal in Windows 10, and am trying to export display while using SSH to connect to a remote server. I have XMing installed on the Windows PC, which works on the local ...
Tom's user avatar
  • 13
0 votes
1 answer
288 views

rm -rf left an undeleteable directory; how can I remove it?

I just rm -rfd some trash (long story short, don't use Unreal and Git, it breaks things). Now I have a file that ls -Al on Bash lists like this: d????????? ? ? ? ? ? old-folder-name ...
Nic's user avatar
  • 101
7 votes
3 answers
4k views

Very slow auto-completion in Linux for Windows

For some reason auto-completion is very slow for me in WSL, it always takes several seconds display the result of, for example ll ~/Te<tab> (which would, after 2-3 seconds, print ll ~/Temp). I'...
laurent's user avatar
  • 1,848
-2 votes
1 answer
3k views

/dev/urandom returning same value every time [closed]

EDIT I: Windows subsystem for Linux. I bet I'm doing something wrong and/or really stupid. // random_problems.c #include <stdio.h> main(){ int rng; FILE * urnd = fopen("/dev/random&...
SIGSTACKFAULT's user avatar
2 votes
1 answer
1k views

Not able to access Docker after installation on Windows Subsystem for Linux

I have installed Docker using Windows Subsystem for Linux: peter@BRIAN-PC:/mnt/c/Windows/System32$ docker version The program 'docker' is currently not installed. You can install it by typing: sudo ...
Angular4 Kiddie's user avatar
0 votes
1 answer
2k views

Access a physical Ext3 drive under Windows host system for defrag?

Access a physical Ext3 drive under Windows host system for defrag? Note: Debunking the myth of Linux Filesystems not getting fragmented. http://www.webupd8.org/2010/03/install-defrag-...
Alex S's user avatar
  • 189

1
4 5 6
7
8