{"id":233089,"date":"2022-01-04T10:26:47","date_gmt":"2022-01-04T02:26:47","guid":{"rendered":"https:\/\/gulass.cn\/?p=233089"},"modified":"2021-12-27T19:27:39","modified_gmt":"2021-12-27T11:27:39","slug":"shell-of-introduction","status":"publish","type":"post","link":"https:\/\/gulass.cn\/shell-of-introduction.html","title":{"rendered":"Shell\u7684\u4ecb\u7ecd"},"content":{"rendered":"
\u6211\u4eec\u6bd4\u8f83\u719f\u6089Windows\u7cfb\u7edf\u7684\u56fe\u5f62\u5316\u754c\u9762\uff0c\u5bf9\u4e8e\u56fe\u5f62\u754c\u9762\u6765\u8bf4\uff0c\u7528\u6237\u70b9\u51fb\u67d0\u4e2a\u56fe\u6807\u5c31\u80fd\u542f\u52a8\u67d0\u4e2a\u7a0b\u5e8f\u3002<\/p>\n
\u5728\u6b64\u4e4b\u524d\u6211\u4eec\u4e00\u76f4\u5728\u4f7f\u7528Linux\u7cfb\u7edf\u7684\u547d\u4ee4\u884c\u6a21\u5f0f\u5b66\u4e60\uff0c\u5bf9\u4e8e\u547d\u4ee4\u884c\u6765\u8bf4\uff0c\u7528\u6237\u8f93\u5165\u4e00\u4e2a\u547d\u4ee4\u5c31\u80fd\u542f\u52a8\u67d0\u4e2a\u7a0b\u5e8f\u3002<\/p>\n
\u8fd9\u4e24\u8005\u7684\u57fa\u672c\u8fc7\u7a0b\u90fd\u662f\u7c7b\u4f3c\u7684\uff0c\u90fd\u9700\u8981\u67e5\u627e\u7a0b\u5e8f\u5728\u786c\u76d8\u4e0a\u7684\u5b89\u88c5\u4f4d\u7f6e\uff0c\u7136\u540e\u5c06\u5b83\u4eec\u52a0\u8f7d\u5230\u5185\u5b58\u8fd0\u884c\u3002<\/p>\n
\u7136\u800c\uff0c\u771f\u6b63\u80fd\u591f\u63a7\u5236\u8ba1\u7b97\u673a\u786c\u4ef6\uff08CPU\u3001\u5185\u5b58\u3001\u663e\u793a\u5668\u7b49\uff09\u7684\u53ea\u6709\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\uff08Kernel\uff09\uff0c\u56fe\u5f62\u754c\u9762\u548c\u547d\u4ee4\u884c\u53ea\u662f\u67b6\u8bbe\u5728\u7528\u6237\u548c\u5185\u6838\u4e4b\u95f4\u7684\u4e00\u5ea7\u6865\u6881\u3002<\/p>\n
\u7531\u4e8e\u5b89\u5168\u3001\u590d\u6742\u3001\u7e41\u7410\u7b49\u539f\u56e0\uff0c\u7528\u6237\u4e0d\u80fd\u76f4\u63a5\u63a5\u89e6\u5185\u6838\uff08\u4e5f\u6ca1\u6709\u5fc5\u8981\uff09\uff0c\u6240\u4ee5\u5c31\u9700\u8981\u53e6\u5916\u518d\u5f00\u53d1\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u4f7f\u8be5\u7a0b\u5e8f\u7684\u4f5c\u7528\u5c31\u662f\u63a5\u6536\u7528\u6237\u7684\u64cd\u4f5c\uff08\u70b9\u51fb\u56fe\u6807\u3001\u8f93\u5165\u547d\u4ee4\uff09\uff0c\u5e76\u8fdb\u884c\u7b80\u5355\u7684\u5904\u7406\uff0c\u7136\u540e\u518d\u4f20\u9012\u7ed9\u5185\u6838\u3002\u540c\u65f6\u5185\u6838\u6267\u884c\u5b8c\u6210\u7684\u7ed3\u679c\uff0c\u4e5f\u7ecf\u8fc7\u8be5\u7a0b\u5e8f\u7684\u5904\u7406\uff0c\u8fd4\u56de\u7ed9\u7528\u6237\u3002<\/p>\n
\u5982\u6b64\u4e00\u6765\uff0c\u7528\u6237\u548c\u5185\u6838\u4e4b\u95f4\u5c31\u591a\u4e86\u4e00\u5c42\u201c\u4ee3\u7406\u201d\uff0c\u8fd9\u5c42\u201c\u4ee3\u7406\u201d\u65e2\u7b80\u5316\u4e86\u7528\u6237\u7684\u64cd\u4f5c\uff0c\u4e5f\u4fdd\u62a4\u4e86\u5185\u6838\u3002<\/p>\n
\u7528\u6237\u754c\u9762\u548c\u547d\u4ee4\u884c\u5c31\u662f\u6211\u4eec\u6240\u8bf4\u7684\u8fd9\u4e2a\u53e6\u5916\u5f00\u53d1\u7684\u7a0b\u5e8f\uff0c\u5c31\u662f\u8fd9\u5c42\u201c\u4ee3\u7406\u201d\uff0c\u5728Linux\u4e0b\u7684\u8fd9\u4e2a\u547d\u4ee4\u884c\u7a0b\u5e8f\u5c31\u53eb\u505aShell\u3002<\/p>\n
Shell\u6240\u5904\u7684\u4f4d\u7f6e\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n
<\/p>\n
\u603b\u7ed3\uff1a<\/p>\n
Shell\u7684\u82f1\u6587\u542b\u4e49\u662f\u201c\u58f3\u201d\u3002
\nShell\u662f\u4e00\u4e2a\u547d\u4ee4\u89e3\u91ca\u5668\uff0c\u5b83\u5728\u64cd\u4f5c\u7cfb\u7edf\u7684\u6700\u5916\u5c42\uff0c\u8d1f\u8d23\u76f4\u63a5\u4e0e\u7528\u6237\u5bf9\u8bdd\uff0c\u628a\u7528\u6237\u7684\u8f93\u5165\u89e3\u91ca\u7ed9\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5e76\u5904\u7406\u5404\u79cd\u5404\u6837\u7684\u64cd\u4f5c\u7cfb\u7edf\u7684\u8f93\u51fa\u7ed3\u679c\uff0c\u8fd4\u56de\u7ed9\u7528\u6237\u3002\u6362\u53e5\u8bdd\u8bf4\uff0cShell\u662f\u4e3a\u7528\u6237\u4e0e\u673a\u5668\u4e4b\u95f4\u642d\u5efa\u6210\u7684\u4e00\u4e2a\u6865\u6881\uff0c\u8ba9\u6211\u4eec\u80fd\u591f\u901a\u8fc7Shell\u6765\u5bf9\u8ba1\u7b97\u673a\u8fdb\u884c\u64cd\u4f5c\u548c\u4ea4\u4e92\uff0c\u4ece\u800c\u8fbe\u5230\u8ba9\u8ba1\u7b97\u673a\u4e3a\u6211\u4eec\u670d\u52a1\u7684\u76ee\u7684\u3002
\nShell\u72ec\u7acb\u4e8e\u5185\u6838\uff0c\u5185\u6838\u662fLinux\u7cfb\u7edf\u7684\u5fc3\u810f\uff0c\u4ece\u5f00\u673a\u81ea\u68c0\u5c31\u9a7b\u624e\u5728\u8ba1\u7b97\u673a\u5185\u5b58\u4e2d\uff0c\u76f4\u5230\u8ba1\u7b97\u673a\u5173\u95ed\u4e3a\u6b62\u3002\u7528\u6237\u7684\u5e94\u7528\u7a0b\u5e8f\u5b58\u50a8\u5728\u8ba1\u7b97\u673a\u786c\u76d8\u4e0a\uff0c\u4ec5\u5f53\u9700\u8981\u65f6\u624d\u88ab\u8c03\u5165\u5185\u5b58\u3002
\nShell\u662f\u4e00\u79cd\u5e94\u7528\u7a0b\u5e8f\uff0c\u5f53\u7528\u6237\u767b\u9646Linux\u7cfb\u7edf\u65f6\uff0cShell\u5c31\u4f1a\u88ab\u8c03\u7528\u5230\u5185\u5b58\u6267\u884c\u3002<\/p>\n
\uff081\uff09\u7b2c\u4e00\u79cd\u65b9\u5f0f\uff1a\u4ea4\u4e92\u5f0f\uff08Interactive\uff09<\/p>\n
\u662f\u7528\u6237\u76f4\u63a5\u5728Shell\u754c\u9762\uff08\u7ec8\u7aef\u754c\u9762\uff09\u4e0a\u6267\u884cShell\u547d\u4ee4\uff0c\u7531\u4e8eShell\u754c\u9762\u7684\u5173\u7cfb\uff0c\u5927\u5bb6\u90fd\u4e60\u60ef\u4e00\u884c\u884c\u7684\u4e66\u5199\uff0c\u5f88\u5c11\u5199\u51fa\u6210\u5957\u7684\u7a0b\u5e8f\u6765\u4e00\u8d77\u6267\u884c\uff0c\u6240\u4ee5\u4e5f\u79f0\u547d\u4ee4\u884c\u3002\uff08\u6362\u53e5\u8bdd\u8bf4\u6211\u4eec\u64cd\u4f5c\u7684\u7ec8\u7aef\u5c31\u662f\u4e00\u4e2aShell\uff09<\/p>\n
\uff082\uff09\u7b2c\u4e8c\u79cd\u65b9\u5f0f\uff1a\u6279\u5904\u7406\uff08Batch\uff09<\/p>\n
\u662f\u7528\u6237\u4e8b\u5148\u7f16\u5199\u4e00\u4e2aShell\u811a\u672c\u6587\u4ef6\uff0c\u5185\u542bShell\u811a\u672c\uff0c\u800c\u540e\u4f7f\u7528Shell\u7a0b\u5e8f\u6267\u884c\u8be5\u811a\u672c\uff0c\u8fd9\u79cd\u65b9\u5f0f\u6211\u4eec\u4e60\u60ef\u79f0\u4e3aShell\u7f16\u7a0b\u3002\uff08\u7b80\u5355\u7684\u7406\u89e3\u811a\u672c\u5c31\u662f\u4e00\u5806\u547d\u4ee4\u7684\u96c6\u5408\u3002\uff09<\/p>\n
Shell\u811a\u672c\u5c31\u662f\u628a\u547d\u4ee4\u3001\u53d8\u91cf\u548c\u6d41\u7a0b\u63a7\u5236\u8bed\u53e5\u7b49\u6709\u673a\u7684\u7ed3\u5408\u8d77\u6765\u3002<\/p>\n
Shell\u811a\u672c\u64c5\u957f\u5904\u7406\u7eaf\u6587\u672c\u7c7b\u578b\u7684\u6570\u636e\uff0c\u800cLinux\u7cfb\u7edf\u4e2d\uff0c\u51e0\u4e4e\u6240\u6709\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u65e5\u5fd7\u6587\u4ef6\uff0c\u90fd\u662f\u7eaf\u6587\u672c\u7c7b\u578b\u6587\u4ef6\u3002<\/p>\n
\u4efb\u4f55\u4ee3\u7801\u6700\u7ec8\u90fd\u8981\u88ab\u201c\u7ffb\u8bd1\u201d\u6210\u4e8c\u8fdb\u5236\u7684\u5f62\u5f0f\u624d\u80fd\u5728\u8ba1\u7b97\u673a\u4e2d\u6267\u884c\u3002<\/p>\n
\u6709\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5982Java\u3001Go\u8bed\u8a00\u7b49\uff0c\u5fc5\u987b\u5728\u7a0b\u5e8f\u8fd0\u884c\u4e4b\u524d\u5c06\u6240\u6709\u4ee3\u7801\u90fd\u7ffb\u8bd1\u6210\u4e8c\u8fdb\u5236\u5f62\u5f0f\uff0c\u4e5f\u5c31\u662f\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u7528\u6237\u62ff\u5230\u7684\u662f\u6700\u7ec8\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u662f\u770b\u4e0d\u5230\u6e90\u7801\u7684\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u53eb\u505a\u7f16\u8bd1\uff08Compile\uff09\uff0c\u8fd9\u6837\u7684\u7f16\u7a0b\u8bed\u8a00\u53eb\u505a\u7f16\u8bd1\u578b\u8bed\u8a00\uff0c\u5b8c\u6210\u7f16\u8bd1\u8fc7\u7a0b\u7684\u8f6f\u4ef6\u53eb\u505a\u7f16\u8bd1\u5668\uff08Compiler\uff09\u3002<\/p>\n
\u800c\u6709\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5982Shell\u3001JavaScript\u3001Python\u7b49\uff0c\u9700\u8981\u4e00\u8fb9\u6267\u884c\u4e00\u8fb9\u7ffb\u8bd1\uff0c\u4e0d\u4f1a\u751f\u6210\u4efb\u4f55\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u7528\u6237\u5fc5\u987b\u62ff\u5230\u6e90\u7801\u624d\u80fd\u8fd0\u884c\u7a0b\u5e8f\u3002\u7a0b\u5e8f\u8fd0\u884c\u540e\u4f1a\u5373\u65f6\u7ffb\u8bd1\uff0c\u7ffb\u8bd1\u5b8c\u4e00\u90e8\u5206\u6267\u884c\u4e00\u90e8\u5206\uff0c\u4e0d\u7528\u7b49\u5230\u6240\u6709\u4ee3\u7801\u90fd\u7ffb\u8bd1\u5b8c\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u53eb\u505a\u89e3\u91ca\uff0c\u8fd9\u6837\u7684\u7f16\u7a0b\u8bed\u8a00\u53eb\u505a\u89e3\u91ca\u578b\u8bed\u8a00\u6216\u8005\u811a\u672c\u8bed\u8a00\uff08Script\uff09\uff0c\u5b8c\u6210\u89e3\u91ca\u8fc7\u7a0b\u7684\u8f6f\u4ef6\u53eb\u505a\u89e3\u91ca\u5668\u3002<\/p>\n
\u7f16\u8bd1\u578b\u8bed\u8a00\u7684\u4f18\u70b9\u662f\u6267\u884c\u901f\u5ea6\u5feb\u3001\u5bf9\u786c\u4ef6\u8981\u6c42\u4f4e\u3001\u4fdd\u5bc6\u6027\u597d\uff0c\u9002\u5408\u5f00\u53d1\u64cd\u4f5c\u7cfb\u7edf\u3001\u5927\u578b\u5e94\u7528\u7a0b\u5e8f\u3001\u6570\u636e\u5e93\u7b49\u3002<\/p>\n
\u811a\u672c\u8bed\u8a00\u7684\u4f18\u70b9\u662f\u4f7f\u7528\u7075\u6d3b\u3001\u90e8\u7f72\u5bb9\u6613\u3001\u8de8\u5e73\u53f0\u6027\u597d\uff0c\u975e\u5e38\u9002\u5408Web\u5f00\u53d1\u4ee5\u53ca\u5c0f\u5de5\u5177\u7684\u5236\u4f5c\u3002<\/p>\n
Shell \u5c31\u662f\u4e00\u79cd\u811a\u672c\u8bed\u8a00\uff0c\u6211\u4eec\u7f16\u5199\u5b8c\u6e90\u7801\u540e\u4e0d\u7528\u7f16\u8bd1\uff0c\u76f4\u63a5\u8fd0\u884c\u6e90\u7801\u5373\u53ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u6211\u4eec\u6bd4\u8f83\u719f\u6089Windows\u7cfb\u7edf\u7684\u56fe\u5f62\u5316\u754c\u9762\uff0c\u5bf9\u4e8e\u56fe\u5f62\u754c\u9762\u6765\u8bf4\uff0c\u7528\u6237\u70b9\u51fb\u67d0\u4e2a\u56fe\u6807\u5c31\u80fd\u542f\u52a8\u67d0\u4e2a\u7a0b\u5e8f\u3002 \u5728\u6b64\u4e4b\u524d\u6211\u4eec […]<\/p>\n","protected":false},"author":1903,"featured_media":233109,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-233089","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/233089","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1903"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=233089"}],"version-history":[{"count":5,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/233089\/revisions"}],"predecessor-version":[{"id":233095,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/233089\/revisions\/233095"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/233109"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=233089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=233089"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=233089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}