{"id":9330,"date":"2023-11-28T21:00:14","date_gmt":"2023-11-28T13:00:14","guid":{"rendered":"https:\/\/wx.kaifamiao.info\/?p=9330"},"modified":"2023-11-30T21:59:22","modified_gmt":"2023-11-30T13:59:22","slug":"linux-zhongbash-hedos-zhi-jian-de-ji-ben-qu-bie-sh","status":"publish","type":"post","link":"http:\/\/wx.kaifamiao.info\/index.php\/2023\/11\/28\/linux-zhongbash-hedos-zhi-jian-de-ji-ben-qu-bie-sh\/","title":{"rendered":"Linux \u4e2d BASH \u548c DOS \u4e4b\u95f4\u7684\u57fa\u672c\u533a\u522b\u662f\u4ec0\u4e48\uff1f"},"content":{"rendered":"<p>BASH\uff08Bourne Again SHell\uff09\u548cDOS\u7684\u57fa\u672c\u533a\u522b\u4e3b\u8981\u5728\u4e8e\u5b83\u4eec\u662f\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u7684\u547d\u4ee4\u884c\u89e3\u91ca\u5668\uff0c\u5404\u81ea\u9488\u5bf9\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u73af\u5883\u800c\u8bbe\u8ba1\uff0c\u5177\u6709\u4ee5\u4e0b\u533a\u522b\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u64cd\u4f5c\u7cfb\u7edf\u73af\u5883\uff1a<\/strong><\/p>\n<ul>\n<li><strong>BASH\uff1a<\/strong> BASH\u662fUnix\/Linux\u7cfb\u7edf\u7684\u547d\u4ee4\u884c\u89e3\u91ca\u5668\uff0c\u662f\u5927\u591a\u6570Linux\u53d1\u884c\u7248\u9ed8\u8ba4\u7684shell\u3002<\/li>\n<li><strong>DOS\uff1a<\/strong> DOS\uff08Disk Operating System\uff09\u662f\u65e9\u671f\u5fae\u8f6f\u7684\u78c1\u76d8\u64cd\u4f5c\u7cfb\u7edf\uff0c\u7528\u4e8e\u65e9\u671f\u7248\u672c\u7684Windows\u548c\u4e00\u4e9b\u65e9\u671f\u7684\u4e2a\u4eba\u8ba1\u7b97\u673a\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8bed\u6cd5\u548c\u547d\u4ee4\uff1a<\/strong><\/p>\n<ul>\n<li><strong>BASH\uff1a<\/strong> BASH\u9075\u5faaUnix\/Linux\u7684\u547d\u4ee4\u8bed\u6cd5\u548c\u7ea6\u5b9a\uff0c\u4f7f\u7528\u7c7bUnix\u7684\u547d\u4ee4\uff08\u4f8b\u5982ls\u3001grep\u3001chmod\u7b49\uff09\uff0c\u652f\u6301\u4e30\u5bcc\u7684\u529f\u80fd\u548c\u811a\u672c\u7f16\u7a0b\u3002<\/li>\n<li><strong>DOS\uff1a<\/strong> DOS\u7684\u547d\u4ee4\u8bed\u6cd5\u548c\u7ea6\u5b9a\u4e0eUnix\/Linux\u7cfb\u7edf\u4e0d\u540c\uff0c\u547d\u4ee4\u4e5f\u4e0d\u540c\uff0c\u91c7\u7528\u4e0d\u540c\u7684\u547d\u4ee4\u548c\u53c2\u6570\u7ed3\u6784\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u6587\u4ef6\u8def\u5f84\u8868\u793a\uff1a<\/strong><\/p>\n<ul>\n<li><strong>BASH\uff1a<\/strong> \u5728BASH\u4e2d\uff0c\u6587\u4ef6\u8def\u5f84\u5206\u9694\u7b26\u4f7f\u7528\u659c\u6760\uff08<code>\/<\/code>\uff09\uff0c\u4f8b\u5982<code>\/home\/user\/file.txt<\/code>\u3002<\/li>\n<li><strong>DOS\uff1a<\/strong> DOS\u4e2d\u6587\u4ef6\u8def\u5f84\u5206\u9694\u7b26\u4f7f\u7528\u53cd\u659c\u6760\uff08<code>\\<\/code>\uff09\uff0c\u4f8b\u5982<code>C:\\Users\\User\\file.txt<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u811a\u672c\u8bed\u8a00\u548c\u6279\u5904\u7406\u6587\u4ef6\uff1a<\/strong><\/p>\n<ul>\n<li><strong>BASH\uff1a<\/strong> BASH\u662f\u4e00\u79cd\u529f\u80fd\u5f3a\u5927\u7684\u811a\u672c\u8bed\u8a00\uff0c\u5141\u8bb8\u7f16\u5199\u590d\u6742\u7684\u811a\u672c\u7a0b\u5e8f\u6765\u81ea\u52a8\u5316\u4efb\u52a1\u548c\u5904\u7406\u7cfb\u7edf\u4efb\u52a1\u3002<\/li>\n<li><strong>DOS\uff1a<\/strong> DOS\u4f7f\u7528\u6279\u5904\u7406\u6587\u4ef6\uff08<code>.bat<\/code>\u6216<code>.cmd<\/code>\uff09\u6765\u6267\u884c\u4e00\u7cfb\u5217\u547d\u4ee4\uff0c\u5176\u529f\u80fd\u76f8\u5bf9\u8f83\u5f31\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u6587\u4ef6\u7cfb\u7edf\uff1a<\/strong><\/p>\n<ul>\n<li><strong>BASH\uff1a<\/strong> BASH\u901a\u5e38\u7528\u4e8e\u64cd\u4f5cUnix\/Linux\u6587\u4ef6\u7cfb\u7edf\uff0c\u652f\u6301\u5f3a\u5927\u7684\u6587\u4ef6\u6743\u9650\u548c\u7ba1\u7406\u529f\u80fd\u3002<\/li>\n<li><strong>DOS\uff1a<\/strong> DOS\u4e3b\u8981\u7528\u4e8e\u64cd\u4f5cFAT\u548cFAT32\u6587\u4ef6\u7cfb\u7edf\uff0c\u8f83\u65e9\u7684Windows\u7248\u672c\u4e2d\u4f7f\u7528\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u603b\u7684\u6765\u8bf4\uff0cBASH\u662f\u5728Unix\/Linux\u7cfb\u7edf\u4e0a\u4f7f\u7528\u7684\u529f\u80fd\u5f3a\u5927\u7684\u547d\u4ee4\u884c\u89e3\u91ca\u5668\u548c\u811a\u672c\u8bed\u8a00\uff0c\u800cDOS\u662f\u65e9\u671f\u5fae\u8f6f\u64cd\u4f5c\u7cfb\u7edf\u7684\u547d\u4ee4\u884c\u754c\u9762\uff0c\u4f7f\u7528\u4e86\u4e0d\u540c\u7684\u547d\u4ee4\u548c\u8bed\u6cd5\u3002\u4e24\u8005\u7684\u8bbe\u8ba1\u76ee\u7684\u3001\u547d\u4ee4\u96c6\u548c\u64cd\u4f5c\u65b9\u5f0f\u90fd\u6709\u660e\u663e\u7684\u533a\u522b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BASH\uff08Bourne Again SHell\uff09\u548cDOS\u7684\u57fa\u672c\u533a\u522b\u4e3b\u8981\u5728\u4e8e\u5b83\u4eec\u662f\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u7684\u547d\u4ee4\u884c\u89e3\u91ca\u5668\uff0c\u5404 [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105],"tags":[],"class_list":["post-9330","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/9330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/comments?post=9330"}],"version-history":[{"count":2,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/9330\/revisions"}],"predecessor-version":[{"id":13773,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/9330\/revisions\/13773"}],"wp:attachment":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/media?parent=9330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/categories?post=9330"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/tags?post=9330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}