{"id":191,"date":"2022-04-21T12:05:54","date_gmt":"2022-04-21T04:05:54","guid":{"rendered":"\/\/hqidi.com\/?p=191"},"modified":"2022-04-21T12:05:54","modified_gmt":"2022-04-21T04:05:54","slug":"windows-%e4%b8%8b%e5%ae%9e%e7%8e%b0%e7%b1%bb%e4%bc%bc-linux-%e9%87%8c%e9%9d%a2%e5%91%bd%e4%bb%a4%e5%88%ab%e5%90%8d%e5%8a%9f%e8%83%bd","status":"publish","type":"post","link":"https:\/\/hqidi.com\/191.html","title":{"rendered":"Windows \u4e0b\u5b9e\u73b0\u7c7b\u4f3c Linux \u91cc\u9762\u547d\u4ee4\u522b\u540d\u529f\u80fd"},"content":{"rendered":"<p><img decoding=\"async\" src=\"\/\/hqidi.com\/img\/191\/1.png\" alt=\"\" \/><br \/>\n\u25b2 \u603b\u662f\u4e60\u60ef\u6027\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u91cc\u9762\u6572 ls \uff0c\u603b\u662f\u88abWindows\u5acc\u5f03\u3002<\/p>\n<p>\u5728 Linux \u5e73\u53f0\uff0c\u8fd9\u4e2a\u95ee\u9898\u5f88\u597d\u89e3\u51b3<br \/>\nalias ls='dir'<br \/>\n\u8fd9\u6837\uff0c\u4f60\u6267\u884c ls \uff0c\u5176\u5b9e\u6700\u7ec8\u6267\u884c\u7684\u662f \u201c=\u201d \u53f7\u540e\u9762\u7684 dir \u547d\u4ee4\u3002<br \/>\n\u8fd9\u6709\u5565\u7528\uff1f<br \/>\n\u6bd4\u5982\u4f60\u5728\u8fd0\u884c\u6846\u91cc\u9762\u8f93\u5165 TT \uff0c\u60f3\u6253\u5f00\u9489\u9489\uff0c\u7ed3\u679c\u4e00\u56de\u8f66\uff0c\u7535\u8111\u5173\u673a\u4e86\u3002<br \/>\nWindows \u8fd9\u8fb9\uff0c\u597d\u50cf\u6ca1\u76f8\u5173\u7684\u529f\u80fd\uff0c\u53ea\u80fd\u81ea\u5df1\u89e3\u51b3\uff0c\u672c\u6587\u63d0\u4f9b\u4e09\u79cd\u65b9\u6cd5\u5b9e\u73b0Windows \u4e0b\u7684\u547d\u4ee4\u522b\u540d\u3002<\/p>\n<p>dir \u547d\u4ee4\u662f\u7cfb\u7edf\u5185\u7f6e\u547d\u4ee4\uff0c\u5c31\u662f\u8bf4\u7cfb\u7edf\u76ee\u5f55\u91cc\u9762\u6ca1\u6709 dir.exe \u8fd9\u4e2a\u5b9e\u4f53\u6587\u4ef6\u7684\u3002\u53ea\u8981Windows \u5185\u6838\u6b63\u5e38\u542f\u52a8\uff0c\u4f60\u5c31\u53ef\u4ee5\u968f\u610f\u6267\u884c dir \u547d\u4ee4\u3002\u8fd9\u79cd\u60c5\u51b5\u8981\u5b9e\u73b0\u522b\u540d\u7a0d\u5fae\u9ebb\u70e6\u4e00\u70b9\u3002<br \/>\n\u6253\u5f00\u8bb0\u4e8b\u672c\uff0c\u5199\u5165\u5982\u4e0b\u5185\u5bb9\uff0c\u4fdd\u5b58\u6210 ls.bat \uff0c\u7136\u540e\u4e22\u5230 C:\\Windows \u76ee\u5f55\u91cc\u9762\u53bb\u5c31\u884c\u4e86\u3002<\/p>\n<pre class=\"prettyprint\" >\r\n@echo off \r\ndir\r\n<\/pre>\n<h3>Windows \u4e0bPATH\u53d8\u91cf<\/h3>\n<p>\u4e3a\u4ec0\u4e48\u5f80 C:\\Windows \u76ee\u5f55\u91cc\u9762\u4e22\uff0c\u56e0\u4e3a\u8fd9\u4e2a\u76ee\u5f55\u5728 path \u53d8\u91cf\u91cc\u9762\uff0c\u4f60\u5728\u8fd0\u884c\u6846\u6216\u8005\u547d\u4ee4\u63d0\u793a\u7b26\u91cc\u9762\u8f93\u5165\u7684\u7b80\u77ed\u7684\u547d\u4ee4\uff0c\u7cfb\u7edf\u90fd\u4f1a\u53bb path \u53d8\u91cf\u63d0\u4f9b\u7684\u8def\u5f84\u4e0b\u9762\u627e\u4e00\u904d\u3002<\/p>\n<h3>Windows \u4e0b\u5b9e\u73b0\u547d\u4ee4\u522b\u540d<\/h3>\n<p><strong>\u72c2\u66b4\u65b9\u6cd5<\/strong><br \/>\n\u76f4\u63a5\u91cd\u547d\u540d\uff0c\u6bd4\u5982\u4f60\u76f4\u63a5\u628a calc.exe \u6539\u6210 jsq.exe<br \/>\n\u7ecf\u6d4b\u8bd5\uff0c\u5728\u8fd0\u884c\u6846\u76f4\u63a5\u8f93\u5165 jsq \u80fd\u6b63\u5e38\u6253\u5f00\u8ba1\u7b97\u5668\uff1b\u4f46\u9690\u9690\u89c9\u5f97\u8fd9\u6837\u4e0d\u59a5\uff0c\u53ef\u80fd\u4f1a\u6709\u627e\u4e0d\u5230\u52a8\u6001\u94fe\u63a5\u5e93\u7684\u95ee\u9898\u3002<\/p>\n<p><strong>\u6e29\u67d4\u65b9\u6cd5<\/strong><\/p>\n<h3>Windows \u4e0bPATHEXT\u53d8\u91cf<\/h3>\n<p>\u53f3\u51fbcalc.exe \u53d1\u9001\u5230\u684c\u9762\u5feb\u6377\u65b9\u5f0f\uff0c\u7136\u540e\u628a\u5feb\u6377\u65b9\u5f0f\u6539\u540d\u6210 jsq \uff0c\u6700\u540e\u628a\u5feb\u6377\u65b9\u5f0f\u4e22\u5230 C:\\Windows \u76ee\u5f55\u91cc\u9762\u53bb\u3002<br \/>\n\u7136\u540e\u6539\u4e00\u4e0b\u7cfb\u7edf PATHEXT \u53d8\u91cf\uff0c\u8ffd\u52a0 .LNK \uff0c\u8fd9\u4e2a\u53d8\u91cf\u662f\u5e2e\u4f60\u81ea\u52a8\u52a0\u6587\u4ef6\u540e\u7f00\u7684\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/\/hqidi.com\/img\/191\/2.png\" alt=\"\u4fee\u6539PATHEXT\u53d8\u91cf\" \/><br \/>\n\u25b2 Win+PauseBreak \u952e \u6253\u5f00\u7cfb\u7edf\u5c5e\u6027\u754c\u9762<\/p>\n<p>\u7ed3\u5408\u4e0a\u6587 PATH \u53d8\u91cf\uff0c\u6211\u4eec\u6765\u5206\u89e3\u4e00\u4e0b\u4f60\u5728\u8fd0\u884c\u6846\u91cc\u9762\u8f93\u5165 jsq \u4e09\u4e2a\u5b57\u6bcd\uff0c\u7cfb\u7edf\u5185\u6838\u5e2e\u4f60\u505a\u4e86\u4ec0\u4e48\u4e8b\u60c5\uff1a<br \/>\n\u4f60\u56de\u8f66\u540e\uff0cPATHEXT \u53d8\u91cf\u81ea\u52a8\u52a0\u540e\u7f00\uff0c\u53d8\u6210\u4e86 jsq.lnk<br \/>\n\u7136\u540e\uff0c\u7cfb\u7edf\u4f1a\u53bb PATH \u53d8\u91cf\uff0c\u4e5f\u5c31\u662f C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem \u2026\u2026 \u8fd9\u4e9b\u76ee\u5f55\u91cc\u9762\u641c\u7d22 jsq.lnk \uff0c\u6700\u7ec8\u5728 C:\\Windows \u91cc\u9762\u627e\u5230\u5e76\u6267\u884c\u3002<\/p>\n<p>PS\uff1a<br \/>\n\u4ee5\u524d\u7cfb\u7edf\u5bc6\u7801\u662f\u53ef\u4ee5\u8fd9\u4e48\u7834\u89e3\u7684<br \/>\n\u5728\u7cfb\u7edf\u767b\u5f55\u754c\u9762\u4e0d\u662f\u53ef\u4ee5\u70b9\u51fa\u5c4f\u5e55\u952e\u76d8\u5417\uff0c\u5148\u5728PE \u7cfb\u7edf\u91cc\u9762\u628a osk.exe(\u5c4f\u5e55\u952e\u76d8\u6267\u884c\u7a0b\u5e8f) \u6539\u540d\u6210ok.exe \uff0c\u7136\u540e\u628a cmd.exe \u6539\u540d\u6210 osk.exe \u3002<br \/>\n\u91cd\u542f\u7535\u8111\uff0c\u5728\u767b\u5f55\u754c\u9762\u70b9\u51fb\u5c4f\u5e55\u952e\u76d8\u6309\u94ae\uff0c\u5c31\u4f1a\u6253\u5f00 CMD \uff0c\u7136\u540e\u7528 net user \u547d\u4ee4\u4fee\u6539\u5bc6\u7801\u5c31\u884c\u4e86\u3002<\/p>\n<p>\u53c2\u8003\u4e86\uff1a<a href=\"https:\/\/hqidi.com\/16.html\" rel=\"noopener\" target=\"_blank\">windows\u4e0b\u4f7f\u7528curl\u547d\u4ee4<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25b2 \u603b\u662f\u4e60\u60ef\u6027\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u91cc\u9762\u6572 ls \uff0c\u603b\u662f\u88abWindows\u5acc\u5f03\u3002 \u5728 Linux \u5e73\u53f0\uff0c\u8fd9\u4e2a\u95ee\u9898\u5f88\u597d\u89e3\u51b3 alias ls='dir' \u8fd9\u6837\uff0c\u4f60\u6267\u884c ls \uff0c\u5176\u5b9e\u6700\u7ec8\u6267\u884c\u7684\u662f \u201c=\u201d \u53f7\u540e\u9762\u7684 dir \u547d\u4ee4\u3002 \u8fd9\u6709\u5565\u7528\uff1f \u6bd4\u5982\u4f60\u5728\u8fd0\u884c\u6846\u91cc\u9762\u8f93\u5165 TT \uff0c\u60f3\u6253\u5f00\u9489\u9489\uff0c\u7ed3\u679c\u4e00\u56de\u8f66\uff0c\u7535\u8111\u5173\u673a\u4e86\u3002 Windows \u8fd9\u8fb9\uff0c\u597d\u50cf\u6ca1\u76f8\u5173\u7684\u529f\u80fd\uff0c\u53ea\u80fd\u81ea\u5df1\u89e3\u51b3\uff0c\u672c\u6587\u63d0\u4f9b\u4e09...<\/p>\n<a class=\"read-more\" href=\"https:\/\/hqidi.com\/191.html\">\u9605\u8bfb\u5168\u6587 &raquo;<\/a>","protected":false},"author":1,"featured_media":3986,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59],"tags":[],"class_list":["post-191","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows"],"_links":{"self":[{"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/posts\/191"}],"collection":[{"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/comments?post=191"}],"version-history":[{"count":1,"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/posts\/191\/revisions"}],"predecessor-version":[{"id":5439,"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/posts\/191\/revisions\/5439"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/media\/3986"}],"wp:attachment":[{"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/media?parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/categories?post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/tags?post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}