windows10 ubuntu子系统 WSL文件位置
<p>windows10 的linux子系统(windows subsystem for linux)WSL 文件位置</p><p>以我的系统为例,WSL的root目录对应windows的:</p>
<pre><code>C:\Users\xiaoPeng\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs
</code></pre>
<p>其中AppData文件夹默认是隐藏的,但你可以在路径里输入AppData进去。但实际上微软为我们提供了一个默认的变量可以直接指向WSL的目录,<code>wsl$</code> 你可以在运行(win+R)或资源管理器的路径里直接输入<code>\\wsl$</code>进入Ubuntu的目录</p>
<p><img src="https://i.loli.net/2019/09/21/OmCGYjrSHLElIcd.png" alt="image.png" loading="lazy"></p>
<p>知道WSL的网络路径后你可以直接将它添加到资源管理器的网络位置里</p>
<p><img src="https://i.loli.net/2019/09/21/Ru9m7Bx6DeFzqhO.png" alt="image.png" loading="lazy"></p>
</div>
<div id="MySignature" role="contentinfo">
<style type="text/css">#banquan { border: 1px dashed #CACACA; padding: 5px; color: #B58B8B; font-weight: bold; margin-top: 250px }
#banquan a,#bq_title,#bq_time,#bq_url { text-decoration: none; color: #787878 }
#banquan a:hover { text-decoration: underline }
#banquan #bq_shenming { margin: 0 auto; width: 250px; text-align: center; color: #674A20; top: -13px; background-color: #FFF; position: relative }</style>
<div id="banquan">
<div id="bq_shenming">转载请保留原文链接及作者</div>
<table>
<tbody><tr>
<td>本文标题:</td>
<td id="bq_title"></td>
</tr>
<tr>
<td>文章作者:</td>
<td>LepeCoder</td>
</tr>
<tr>
<td>发布时间:</td>
<td id="bq_time"></td>
</tr>
<tr>
<td>原始链接:</td>
<td id="bq_url"></td>
</tr>
</tbody></table>
</div><br><br>
来源:https://www.cnblogs.com/lepeCoder/p/wsl_dir.html
頁:
[1]