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

后端 未结 6 765
攒了一身酷
攒了一身酷 2020-12-08 04:25

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.

6条回答
  •  悲&欢浪女
    2020-12-08 05:13

    Since the Windows 10 Fall Creators Update, the location changed to:

    C:\Users\USERNAME\AppData\Local\Packages\{DIST}\LocalState\rootfs\home\{LINUXUSER}\
    

    Where:

    • {DIST} is equal to CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc
    • {LINUXUSER} is the user for which you are looking for the .bashrc file

    Just for anyone wondering that came here from Google.

提交回复
热议问题