{"id":9317,"date":"2024-05-27T02:14:13","date_gmt":"2024-05-26T18:14:13","guid":{"rendered":"\/?p=9317"},"modified":"2024-05-27T02:14:13","modified_gmt":"2024-05-26T18:14:13","slug":"wsl-%e4%b8%ad%e5%87%ba%e7%8e%b0-zone-identifier-%e6%96%87%e4%bb%b6%e7%9a%84%e5%8e%9f%e5%9b%a0%e5%92%8c%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"\/?p=9317","title":{"rendered":"WSL \u4e2d\u51fa\u73b0 :Zone.Identifier \u6587\u4ef6\u7684\u539f\u56e0\u548c\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"<p>\u56e0\u4e3a\u4f7f\u7528 Windows \u548c WSL \u4f5c\u4e3a\u5f00\u53d1\u73af\u5883\uff0c\u7ecf\u5e38\u51fa\u73b0 :Zone.Identifier \u6587\u4ef6\uff0c\u6240\u4ee5\u5199\u4e86\u8fd9\u7bc7\u535a\u5ba2\u6765\u8bb0\u5f55\u5176\u539f\u56e0\u548c\u89e3\u51b3\u65b9\u6cd5\u3002<\/p>\n<h2>\u539f\u56e0<\/h2>\n<p>\u4ece Windows \u76f4\u63a5\u4e0b\u8f7d\u6587\u4ef6\u6216\u79fb\u52a8\u6587\u4ef6\u5230 WSL \u76ee\u5f55\u65f6\uff0c\u4f1a\u51fa\u73b0\u7c7b\u4f3c <code>:Zone.Identifier<\/code> \u7684\u6587\u4ef6\u3002<\/p>\n<p>\u5176\u4e2d\u5305\u542b\u4e86\u4e00\u4e9b\u8ddf\u5173\u8054\u6587\u4ef6\u6709\u5173\u7684\u5143\u6570\u636e\u3002<\/p>\n<p>\u8be5\u6587\u4ef6\u56e0\u4e3a\u5fae\u8f6f\u7684 NTFS \u529f\u80fd\u800c\u51fa\u73b0\uff0c\u867d\u7136\u6ca1\u6709\u5b9e\u9645\u7528\u9014\u3002<\/p>\n<p>\u4f46\u56e0\u4e3a\u6587\u4ef6\u540d\u5305\u542b <code>:<\/code> \u5192\u53f7\uff0c\u6240\u4ee5\u53ef\u80fd\u4f1a\u7834\u574f\u67d0\u4e9b Linux \u811a\u672c\u7684\u8fd0\u884c\u3002<\/p>\n<p>\u6240\u4ee5\u9700\u8981\u5904\u7406\u5b83\u3002<\/p>\n<h2>\u89e3\u51b3\u65b9\u6cd5<\/h2>\n<ul>\n<li>\u79fb\u52a8\u6587\u4ef6\u65f6\uff0c\u4e0d\u8981\u901a\u8fc7\u8d44\u6e90\u7ba1\u7406\u5668\uff0c\u800c\u662f\u901a\u8fc7 VS Code\uff0c\u8fd9\u6837\u4e0d\u4f1a\u751f\u6210\u8be5\u6587\u4ef6\uff1b<\/li>\n<li>\u901a\u8fc7\u8fd9\u6761\u547d\u4ee4\u5220\u9664\u8be5\u6587\u4ef6\uff1a<code>find . -name &quot;*:Zone.Identifier&quot; -type f -delete<\/code>\u3002<\/li>\n<\/ul>\n<h2>\u53c2\u8003\u94fe\u63a5<\/h2>\n<p><a href=\"https:\/\/github.com\/microsoft\/WSL\/issues\/4609\">Zone.Identifier Files when copying from Windows to WSL filestructure #4609<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/microsoft\/WSL\/issues\/7456\">Zone.Identifier Files when downloading from Windows to WSL file structure #7456<\/a><\/p>\n<p><a href=\"https:\/\/cloudbytes.dev\/snippets\/wsl2-find-and-delete-zoneidentifier-files\">WSL2: Find and Delete Zone.Identifier files<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u56e0\u4e3a\u4f7f\u7528 Windows \u548c WSL \u4f5c\u4e3a\u5f00\u53d1\u73af\u5883\uff0c\u7ecf\u5e38\u51fa\u73b0 :Zone.Identifier \u6587\u4ef6\uff0c\u6240\u4ee5\u5199\u4e86\u8fd9\u7bc7\u535a\u5ba2\u6765\u8bb0\u5f55\u5176\u539f\u56e0\u548c\u89e3\u51b3   \u2026 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[240],"tags":[],"_links":{"self":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts\/9317"}],"collection":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9317"}],"version-history":[{"count":1,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/9317\/revisions"}],"predecessor-version":[{"id":9318,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/9317\/revisions\/9318"}],"wp:attachment":[{"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9317"},{"taxonomy":"post_tag","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}