{"id":279436,"date":"2023-08-03T20:08:55","date_gmt":"2023-08-03T12:08:55","guid":{"rendered":"https:\/\/lrxjmw.cn\/lnhdysxzshnd.html"},"modified":"2023-08-03T20:08:55","modified_gmt":"2023-08-03T12:08:55","slug":"lnhdysxzshnd","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lnhdysxzshnd.html","title":{"rendered":"Linux\u5185\u6838\u8c03\u7528Shell\uff0c\u9009\u62e9\u9002\u5408\u4f60\u7684\u8bc4\u6d4b"},"content":{"rendered":"
\u5728Linux<\/a>\u64cd\u4f5c\u7cfb\u7edf<\/a>\u4e2d\uff0c\u5185\u6838\u4e0eShell\u4e4b\u95f4\u7684\u4e92\u52a8\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002Shell\u4f5c\u4e3a\u7528\u6237\u4e0e\u5185\u6838\u4e4b\u95f4\u7684\u6865\u6881\uff0c\u627f\u62c5\u7740\u6267\u884c\u547d\u4ee4<\/a>\u3001\u7ba1\u7406\u8fdb\u7a0b\u7b49\u91cd\u8981\u4efb\u52a1\u3002\u7136\u800c\uff0c\u5728\u4f17\u591a\u7684Shell\u4e2d\uff0c\u54ea\u4e00\u6b3e\u624d\u662f\u6700\u4f73\u9009\u62e9\u5462\uff1f\u672c\u6587\u5c06\u5bf9\u51e0\u6b3e\u4e3b\u6d41\u7684Linux\u5185\u6838\u8c03\u7528Shell\u8fdb\u884c\u8bc4\u6d4b\u5bf9\u6bd4\uff0c\u5e2e\u52a9\u8bfb\u8005\u627e\u5230\u6700\u9002\u5408\u81ea\u5df1\u7684Shell\u5229\u5668\u3002<\/p>\n \u70b9\u4e00\uff1aBash -\u4f20\u7edf\u800c\u5f3a\u5927<\/b><\/p>\n Bash\uff08Bourne Again SHell\uff09\u88ab\u5e7f\u6cdb\u8ba4\u53ef\u4e3aLinux\u4e16\u754c\u4e2d\u6700\u5e38\u7528\u7684Shell\u3002\u5b83\u51ed\u501f\u5176\u517c\u5bb9\u6027\u3001\u6613\u5b66\u6613\u7528\u4ee5\u53ca\u5f3a\u5927\u7684\u529f\u80fd\u800c\u5907\u53d7\u8d5e\u8a89\u3002Bash\u652f\u6301\u5404\u79cd\u7f16\u7a0b\u7279\u6027\uff0c\u5982\u6761\u4ef6\u8bed\u53e5\u3001\u5faa\u73af\u7ed3\u6784\u548c\u51fd\u6570\u5b9a\u4e49\u7b49\uff0c\u4f7f\u5f97\u5b83\u6210\u4e3a\u4e86\u8bb8\u591a\u5f00\u53d1\u8005\u548c\u7cfb\u7edf\u7ba1\u7406\u5458\u7684\u9996\u9009\u3002<\/p>\n \u70b9\u4e8c\uff1aZsh -\u5f3a\u5927\u7684\u5b9a\u5236\u80fd\u529b<\/b><\/p>\n <\/p>\n Zsh\uff08Z Shell\uff09\u4f5c\u4e3aBash\u7684\u4e00\u4e2a\u6269\u5c55\u7248\u672c\uff0c\u63d0\u4f9b\u4e86\u66f4\u5f3a\u5927\u7684\u5b9a\u5236\u80fd\u529b\u3002\u901a\u8fc7\u63d2\u4ef6\u548c\u4e3b\u9898\uff0c\u7528\u6237\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u5bf9Zsh\u8fdb\u884c\u9ad8\u5ea6\u4e2a\u6027\u5316\u914d\u7f6e\u3002\u6b64\u5916\uff0cZsh\u8fd8\u5177\u5907\u667a\u80fd\u8865\u5168\u3001\u5386\u53f2\u547d\u4ee4\u641c\u7d22\u7b49\u5b9e\u7528\u529f\u80fdlinux\u5185\u6838\u8c03\u7528shell<\/strong>\uff0c\u8fdb\u4e00\u6b65\u63d0\u5347\u4e86\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n \u70b9\u4e09\uff1aFish -\u7b80\u6d01\u800c\u53cb\u597d<\/b><\/p>\n Fish\uff08Friendly Interactive SHell\uff09\u4ee5\u5176\u7b80\u6d01\u3001\u76f4\u89c2\u7684\u754c\u9762\u800c\u5907\u53d7\u6b22\u8fce\u3002Fish\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u81ea\u52a8\u8865\u5168\u529f\u80fd\uff0c\u4f7f\u5f97\u547d\u4ee4\u8f93\u5165\u53d8\u5f97\u66f4\u52a0\u4fbf\u6377\u3002\u5176\u8bed\u6cd5\u63d0\u793a\u548c\u9519\u8bef\u4fee\u590d\u529f\u80fd\u4e5f\u5927\u5927\u964d\u4f4e\u4e86\u7528\u6237\u7684\u5b66\u4e60\u6210\u672c\u3002\u5bf9\u4e8e\u90a3\u4e9b\u8ffd\u6c42\u9ad8\u6548\u7387\u7684\u7528\u6237\u6765\u8bf4\uff0cFish\u7edd\u5bf9\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/p>\n \u70b9\u56db\uff1aTcsh -C\u8bed\u8a00\u98ce\u683c<\/b><\/p>\n Tcsh\uff08TENEX C Shell\uff09\u91c7\u7528\u7c7b\u4f3c\u4e8eC\u8bed\u8a00\u7684\u8bed\u6cd5\u98ce\u683c\uff0c\u4e3a\u719f\u6089C\u8bed\u8a00\u7684\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u4e00\u79cd\u719f\u6089\u7684\u73af\u5883\u3002Tcsh\u652f\u6301\u547d\u4ee4\u522b\u540d\u3001\u5386\u53f2\u547d\u4ee4\u6269\u5c55\u7b49\u7279\u6027\uff0c\u4f7f\u5f97\u7528\u6237\u53ef\u4ee5\u66f4\u52a0\u9ad8\u6548\u5730\u8fdb\u884c\u547d\u4ee4\u884c\u64cd\u4f5c\u3002\u7136\u800c\uff0c\u76f8\u6bd4\u4e8e\u5176\u4ed6Shelllinux apache \u865a\u62df\u4e3b\u673a\uff0cTcsh\u5728\u5b9a\u5236\u6027\u548c\u6269\u5c55\u6027\u65b9\u9762\u7a0d\u663e\u4e0d\u8db3\u3002<\/p>\n \u70b9\u4e94\uff1aKsh -\u4f01\u4e1a\u7ea7\u7a33\u5b9a\u6027<\/b><\/p>\n Ksh\uff08Korn Shell\uff09\u662f\u4e00\u6b3e\u57fa\u4e8eBourne Shell\u7684\u589e\u5f3a\u7248\u672c\uff0c\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u4f01\u4e1a\u7ea7\u73af\u5883\u4e2d\u3002Ksh\u5177\u5907\u9ad8\u5ea6\u7a33\u5b9a\u6027\u548c\u53ef\u9760\u6027\uff0c\u652f\u6301\u4f5c\u4e3a\u811a\u672c\u89e3\u91ca\u5668\u4f7f\u7528\uff0c\u5e76\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7f16\u7a0b\u7279\u6027\u3002\u5bf9\u4e8e\u9700\u8981\u5904\u7406\u5927\u89c4\u6a21\u4efb\u52a1\u548c\u6279\u91cf\u5904\u7406\u7684\u7528\u6237\u6765\u8bf4\uff0cKsh\u662f\u4e00\u4e2a\u503c\u5f97\u4fe1\u8d56\u7684\u9009\u62e9\u3002<\/p>\n \u70b9\u516d\uff1aElvish -\u73b0\u4ee3\u5316\u7684Shell<\/b><\/p>\n Elvish\u662f\u4e00\u6b3e\u76f8\u5bf9\u8f83\u65b0\u7684Shell\uff0c\u4ee5\u5176\u73b0\u4ee3\u5316\u7684\u8bbe\u8ba1\u800c\u5907\u53d7\u5173\u6ce8\u3002Elvish\u91c7\u7528\u4e86\u6570\u636e\u5bfc\u5411\u7684\u7f16\u7a0b\u6a21\u5f0f\uff0c\u652f\u6301\u4e30\u5bcc\u7684\u6570\u636e\u7ed3\u6784\u548c\u64cd\u4f5c\u7b26linux\u5185\u6838\u8c03\u7528shell<\/strong>\uff0c\u4f7f\u5f97Shell\u811a\u672c\u7f16\u5199\u66f4\u52a0\u7075\u6d3b\u548c\u9ad8\u6548\u3002\u6b64\u5916\uff0cElvish\u8fd8\u63d0\u4f9b\u4e86\u53cb\u597d\u7684\u9519\u8bef\u63d0\u793a\u548c\u8c03\u8bd5\u529f\u80fd\uff0c\u5927\u5927\u7b80\u5316\u4e86\u5f00\u53d1\u8fc7\u7a0b\u3002<\/p>\n \u70b9\u4e03\uff1aConclusion -\u9009\u62e9\u9002\u5408\u81ea\u5df1\u7684Shell<\/b><\/p>\n \u5728\u9009\u62e9Linux\u5185\u6838\u8c03\u7528Shell\u65f6\uff0c\u6ca1\u6709\u7edd\u5bf9\u7684\u5bf9\u9519\u4e4b\u5206\uff0c\u53ea\u6709\u9002\u5408\u4e0e\u5426\u4e4b\u522b\u3002Bash\u9002\u5408\u90a3\u4e9b\u9700\u8981\u5f3a\u5927\u529f\u80fd\u548c\u5e7f\u6cdb\u652f\u6301\u7684\u7528\u6237\uff1bZsh\u5219\u9002\u7528\u4e8e\u8ffd\u6c42\u4e2a\u6027\u5316\u548c\u5b9a\u5236\u80fd\u529b\u7684\u7528\u6237\uff1bFish\u5219\u5bf9\u4e8e\u521d\u5b66\u8005\u548c\u8ffd\u6c42\u7b80\u6d01\u53cb\u597d\u4f53\u9a8c\u7684\u7528\u6237\u66f4\u4e3a\u5408\u9002\uff1bTcsh\u9002\u5408\u719f\u6089C\u8bed\u8a00\u4e14\u9700\u8981\u9ad8\u6548\u64cd\u4f5c\u7684\u7528\u6237\uff1bKsh\u5219\u662f\u4f01\u4e1a\u7ea7\u73af\u5883\u4e0b\u7a33\u5b9a\u53ef\u9760\u7684\u9009\u62e9\uff1b\u800cElvish\u5219\u9002\u7528\u4e8e\u8ffd\u6c42\u73b0\u4ee3\u5316\u8bbe\u8ba1\u548c\u9ad8\u6548\u5f00\u53d1\u7684\u7528\u6237\u3002\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u548c\u504f\u597dlinux\u5e38\u7528\u547d\u4ee4\uff0c\u5728\u8fd9\u4e9b\u4f18\u79c0\u7684Shell\u4e2d\u505a\u51fa\u9009\u62e9\u5427\uff01<\/p>\n \u672c\u6587\u5bf9\u51e0\u6b3e\u4e3b\u6d41Linux\u5185\u6838\u8c03\u7528Shell\u8fdb\u884c\u4e86\u8bc4\u6d4b\u5bf9\u6bd4\uff0c\u5e2e\u52a9\u8bfb\u8005\u4e86\u89e3\u5b83\u4eec\u5404\u81ea\u7684\u7279\u70b9\u548c\u9002\u7528\u573a\u666f\u3002\u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\uff0c\u8bfb\u8005\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u9009\u62e9\u6700\u9002\u5408\u81ea\u5df1\u7684Shell\uff0c\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u548c\u7528\u6237\u4f53\u9a8c\u3002\u65e0\u8bba\u662f\u5f00\u53d1\u8005\u3001\u7cfb\u7edf\u7ba1\u7406\u5458\u8fd8\u662f\u666e\u901a\u7528\u6237\uff0c\u4e00\u4e2a\u597d\u7684Shell\u90fd\u80fd\u4e3a\u4ed6\u4eec\u5e26\u6765\u66f4\u597d\u7684\u547d\u4ee4\u884c\u64cd\u4f5c\u4f53\u9a8c\u3002\u8ba9\u6211\u4eec\u4e00\u8d77\u63a2\u7d22Linux\u4e16\u754c\u4e2d\u8fd9\u4e9b\u5f3a\u5927\u800c\u591a\u6837\u5316\u7684\u5185\u6838\u8c03\u7528Shell\u5427\uff01<\/p>\n","protected":false},"excerpt":{"rendered":" \u672c\u6587\u5c06\u5bf9\u51e0\u6b3e\u4e3b\u6d41\u7684Linux\u5185\u6838\u8c03\u7528Shell\u8fdb\u884c\u8bc4\u6d4b\u5bf9\u6bd4\uff0c\u5e2e\u52a9\u8bfb\u8005\u627e\u5230\u6700\u9002\u5408\u81ea\u5df1\u7684Shell\u5229\u5668\u3002Bash\u652f\u6301\u5404\u79cd\u7f16\u7a0b\u7279\u6027\uff0c\u5982\u6761\u4ef6\u8bed\u53e5\u3001\u5faa\u73af\u7ed3\u6784\u548c\u51fd\u6570\u5b9a\u4e49\u7b49\uff0c\u4f7f\u5f97\u5b83\u6210\u4e3a\u4e86\u8bb8\u591a\u5f00\u53d1\u8005\u548c\u7cfb\u7edf\u7ba1\u7406\u5458\u7684\u9996\u9009\u3002\u5728\u9009\u62e9Linux\u5185\u6838\u8c03\u7528Shell\u65f6\uff0c\u6ca1\u6709\u7edd\u5bf9\u7684\u5bf9\u9519\u4e4b\u5206\uff0c\u53ea\u6709\u9002\u5408\u4e0e\u5426\u4e4b\u522b\u3002\u672c\u6587\u5bf9\u51e0\u6b3e\u4e3b\u6d41Linux\u5185\u6838\u8c03\u7528Shell\u8fdb\u884c\u4e86\u8bc4\u6d4b\u5bf9\u6bd4\uff0c\u5e2e\u52a9\u8bfb\u8005\u4e86\u89e3\u5b83\u4eec\u5404\u81ea\u7684\u7279\u70b9\u548c\u9002\u7528\u573a\u666f\u3002<\/p>\n","protected":false},"author":1,"featured_media":279437,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-279436","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/279436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=279436"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/279436\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/279437"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=279436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=279436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=279436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}