"bash on Windows上的Bash"的.bashrc的位置;在Windows 10中 [英] Location of .bashrc for "Bash on Ubuntu on Windows" in Windows 10
本文介绍了"bash on Windows上的Bash"的.bashrc的位置;在Windows 10中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Microsoft刚刚在其Windows 10周年版中引入了Linux子系统.安装非常简单,但是我无法在Windows上找到bash文件.
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.
它如何工作? Windows中的~
指的是什么?在哪里找到.bashrc
?
How does it work? What does ~
refer to in Windows? Where to find .bashrc
?
推荐答案
自Windows 10 Fall Creators Update以来,位置更改为:
Since the Windows 10 Fall Creators Update, the location changed to:
C:\Users\USERNAME\AppData\Local\Packages\{DIST}\LocalState\rootfs\home\{LINUXUSER}\
位置:
-
{DIST}
等于CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc
-
{LINUXUSER}
是您正在寻找.bashrc文件的用户
{DIST}
is equal toCanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc
{LINUXUSER}
is the user for which you are looking for the .bashrc file
对于任何想知道来自Google的人来说都是如此.
Just for anyone wondering that came here from Google.
这篇关于"bash on Windows上的Bash"的.bashrc的位置;在Windows 10中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文