windows-subsystem-for-linux

Location of .bashrc for “Bash on Ubuntu on Windows” in Windows 10

点点圈 提交于 2019-11-27 01:17:40
问题 Microsoft just introduced a Linux subsystem in its Windows 10 Anniversary Edition. The installation is pretty straight forward, but I could not locate bash files on Windows. How does it work? What does ~ refer to in Windows? Where to find .bashrc ? 回答1: Sorry for the misunderstanding, I check on google and it will be at C:\Users\USERNAME\AppData\Local\Lxss\home\USERNAME . I tried and it works, in the cmd just type cd\ && dir *bashrc* /s it will locate the file, and in my case i see the line C

How to enable Bash in Windows 10 developer preview?

白昼怎懂夜的黑 提交于 2019-11-27 00:25:42
问题 I am using windows 10 developer preview Build 14295. From the Build conference I understood that we can enable bash in windows 10. But its not clear how to enable bash in windows 10. Please find below the blog post for running bash in windows 10. Link : http://www.hanselman.com/blog/DevelopersCanRunBashShellAndUsermodeUbuntuLinuxBinariesOnWindows10.aspx After turning on Developer Mode in Windows Settings and adding the Feature, run you bash and are prompted to get Ubuntu on Windows from

Assembly compiled executable on Bash on Ubuntu on Windows doesn't produce output

拜拜、爱过 提交于 2019-11-26 12:31:52
问题 I\'ve been looking at a tutorial for assembly, and I\'m trying to get a hello world program to run. I am using Bash on Ubuntu on Windows. Here is the assembly: section .text global _start ;must be declared for linker (ld) _start: ;tells linker entry point mov edx,len ;message length mov ecx,msg ;message to write mov ebx,1 ;file descriptor (stdout) mov eax,4 ;system call number (sys_write) int 0x80 ;call kernel mov eax,1 ;system call number (sys_exit) int 0x80 ;call kernel section .data msg db

How do I use Bash on Ubuntu on Windows (WSL) for my VS Code terminal?

可紊 提交于 2019-11-26 08:39:45
问题 While other questions deal with how to use things like git-bash, giving the new WSL a spin as the terminal for VS Code is not the same: it gives you access to bash running on an actual Ubuntu Linux subsystem, instead of the git-bash terminal running on the Windows subsystem. So how do we get it working as the VS Code terminal, and particularly how do we get it working as a functional dev environment terminal? Unlike git-bash, this is unfortunately not as simple, because the Ubuntu Linux