You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Linux下如何查找文件夹?WSL2 Ubuntu桌面文件夹位置求助

WSL2 Ubuntu中访问Windows桌面文件夹的方法
  • WSL2会自动把Windows的磁盘挂载到/mnt目录下,比如C盘对应/mnt/c,D盘对应/mnt/d
  • Windows桌面的默认路径是C:\Users\[你的Windows用户名]\Desktop,对应到WSL2里的路径就是/mnt/c/Users/[你的Windows用户名]/Desktop,把[你的Windows用户名]替换成你实际的Windows系统用户名即可
  • 直接执行以下命令就能跳转到桌面:
    cd /mnt/c/Users/你的Windows用户名/Desktop
    
  • 嫌路径太长的话,可以在WSL的用户主目录(/home/你的WSL用户名)创建软链接,以后就能快速访问:
    ln -s /mnt/c/Users/你的Windows用户名/Desktop ~/desktop
    
    之后输入cd ~/desktop就能直接进入Windows桌面文件夹了

内容的提问来源于stack exchange,提问作者Tom_Hanks

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.02 04:10:34