{"id":286,"date":"2019-08-06T21:16:12","date_gmt":"2019-08-06T13:16:12","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=286"},"modified":"2021-05-03T00:42:55","modified_gmt":"2021-05-02T16:42:55","slug":"chapter-02","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/chapter-02.html","title":{"rendered":"\u7b2c2\u7ae0 \u65b0\u624b\u5fc5\u987b\u638c\u63e1\u7684Linux\u547d\u4ee4\u3002"},"content":{"rendered":"
👇\u672c\u7ae0\u8282\u5185\u5bb9\u5df2\u66f4\u65b0\uff0c\u8bf7\u5728\u7ebf\u9605\u8bfb\u6700\u65b0RHEL 8\u7248\u672c\u4e66\u7c4d 👇<\/span><\/strong><\/span><\/p>\n https:\/\/lrxjmw.cn\/basic-learning-02.html<\/span><\/strong><\/span><\/b><\/p>\n \u7ae0\u8282\u7b80\u8ff0\uff1a<\/strong><\/span><\/p>\n \u672c\u7ae0\u9996\u5148\u4ecb\u7ecd\u7cfb\u7edf\u5185\u6838\u548cShell\u7ec8\u7aef\u7684\u5173\u7cfb\u4e0e\u4f5c\u7528\uff0c\u7136\u540e\u4ecb\u7ecdBash\u89e3\u91ca\u5668\u76844\u5927\u4f18\u52bf\u5e76\u5b66\u4e60Linux\u547d\u4ee4\u7684\u6267\u884c\u65b9\u6cd5\u3002\u7ecf\u9a8c\u4e30\u5bcc\u7684\u8fd0\u7ef4\u4eba\u5458\u53ef\u4ee5\u901a\u8fc7\u5408\u7406\u5730\u7ec4\u5408\u9002\u5f53\u7684\u547d\u4ee4\u4e0e\u53c2\u6570\uff0c\u6765\u66f4\u7cbe\u51c6\u5730\u6ee1\u8db3\u5de5\u4f5c\u9700\u6c42\uff0c\u8fc5\u901f\u5f97\u5230\u81ea\u5df1\u60f3\u8981\u7684\u7ed3\u679c\uff0c\u8fd8\u53ef\u4ee5\u5c3d\u53ef\u80fd\u5730\u964d\u4f4e\u7cfb\u7edf\u8d44\u6e90\u6d88\u8017\u3002<\/p>\n \u672c\u4e66\u7cbe\u6311\u7ec6\u9009\u51fa\u8bfb\u8005\u6709\u5fc5\u8981\u9996\u5148\u5b66\u4e60\u7684\u6570\u5341\u4e2aLinux\u547d\u4ee4\uff0c\u5b83\u4eec\u4e0e\u7cfb\u7edf\u5de5\u4f5c\u3001\u7cfb\u7edf\u72b6\u6001\u3001\u5de5\u4f5c\u76ee\u5f55\u3001\u6587\u4ef6\u3001\u76ee\u5f55\u3001\u6253\u5305\u538b\u7f29\u4e0e\u641c\u7d22\u7b49\u4e3b\u9898\u76f8\u5173\u3002\u901a\u8fc7\u628a\u4e0a\u8ff0\u547d\u4ee4\u5f52\u7eb3\u5230\u672c\u7ae0\u4e2d\u7684\u5404\u4e2a\u5c0f\u8282\uff0c\u8ba9\u60a8\u53ef\u4ee5\u5206\u95e8\u522b\u7c7b\u5730\u9010\u4e2a\u5b66\u4e60\u8fd9\u4e9b\u6700\u57fa\u7840\u7684Linux\u547d\u4ee4\uff0c\u4e3a\u4eca\u540e\u5b66\u4e60\u66f4\u590d\u6742\u7684\u547d\u4ee4\u548c\u670d\u52a1\u505a\u597d\u5fc5\u5907\u77e5\u8bc6\u94fa\u57ab\u3002<\/p>\n Linux\u547d\u4ee4\u5927\u5168\uff1ahttps:\/\/www.linuxcool.com<\/a>\u00a0 \u00a0 \u2190\u5efa\u8bae\u5148\u6dfb\u52a0\u5230\u6d4f\u89c8\u5668\u6536\u85cf\u5939\uff0c\u5b66\u4e60\u5b8c\u672c\u7ae0\u8282\u540e\u518d\u6d4f\u89c8<\/strong><\/p>\n \u901a\u5e38\u6765\u8bb2\uff0c\u8ba1\u7b97\u673a\u786c\u4ef6\u662f\u7531\u8fd0\u7b97\u5668\u3001\u63a7\u5236\u5668\u3001\u5b58\u50a8\u5668\u3001\u8f93\u5165\/\u8f93\u51fa\u8bbe\u5907\u7b49\u5171\u540c\u7ec4\u6210\u7684\uff0c\u800c\u8ba9\u5404\u79cd\u786c\u4ef6\u8bbe\u5907\u5404\u53f8\u5176\u804c\u4e14\u53c8\u80fd\u534f\u540c\u8fd0\u884c\u7684\u4e1c\u897f\u5c31\u662f\u7cfb\u7edf\u5185\u6838\u3002Linux\u7cfb\u7edf\u7684\u5185\u6838\u8d1f\u8d23\u5b8c\u6210\u5bf9\u786c\u4ef6\u8d44\u6e90\u7684\u5206\u914d\u3001\u8c03\u5ea6\u7b49\u7ba1\u7406\u4efb\u52a1\u3002\u7531\u6b64\u53ef\u89c1\uff0c\u7cfb\u7edf\u5185\u6838\u5bf9\u8ba1\u7b97\u673a\u7684\u6b63\u5e38\u8fd0\u884c\u6765\u8bb2\u662f\u592a\u91cd\u8981\u4e86\uff0c\u56e0\u6b64\u4e00\u822c\u4e0d\u5efa\u8bae\u76f4\u63a5\u53bb\u7f16\u8f91\u5185\u6838\u4e2d\u7684\u53c2\u6570\uff0c\u800c\u662f\u8ba9\u7528\u6237\u901a\u8fc7\u57fa\u4e8e\u7cfb\u7edf\u8c03\u7528\u63a5\u53e3\u5f00\u53d1\u51fa\u7684\u7a0b\u5e8f\u6216\u670d\u52a1\u6765\u7ba1\u7406\u8ba1\u7b97\u673a\uff0c\u4ee5\u6ee1\u8db3\u65e5\u5e38\u5de5\u4f5c\u7684\u9700\u8981\uff0c\u5982\u56fe2-1\u6240\u793a\u3002<\/p>\n \u5fc5\u987b\u80af\u5b9a\u7684\u662f\uff0cLinux\u7cfb\u7edf\u4e2d\u6709\u4e9b\u56fe\u5f62\u5316\u5de5\u5177\uff08\u6bd4\u5982\u903b\u8f91\u5377\u7ba1\u7406\u5668[Logical Volume Manager\uff0cLVM]\uff09\u786e\u5b9e\u975e\u5e38\u597d\u7528\uff0c\u6781\u5927\u5730\u964d\u4f4e\u4e86\u8fd0\u7ef4\u4eba\u5458\u64cd\u4f5c\u51fa\u9519\u7684\u6982\u7387\uff0c\u503c\u5f97\u79f0\u8d5e\u3002\u4f46\u662f\uff0c\u5f88\u591a\u56fe\u5f62\u5316\u5de5\u5177\u5176\u5b9e\u662f\u8c03\u7528\u4e86\u811a\u672c\u6765\u5b8c\u6210\u76f8\u5e94\u7684\u5de5\u4f5c\uff0c\u5f80\u5f80\u53ea\u662f\u4e3a\u4e86\u5b8c\u6210\u67d0\u79cd\u5de5\u4f5c\u800c\u8bbe\u8ba1\u7684\uff0c\u7f3a\u4e4fLinux\u547d\u4ee4\u539f\u6709\u7684\u7075\u6d3b\u6027\u53ca\u53ef\u63a7\u6027\u3002\u518d\u8005\uff0c\u56fe\u5f62\u5316\u5de5\u5177\u76f8\u8f83\u4e8eLinux\u547d\u4ee4\u884c\u754c\u9762\u4f1a\u66f4\u52a0\u6d88\u8017\u7cfb\u7edf\u8d44\u6e90\uff0c\u56e0\u6b64\u7ecf\u9a8c\u4e30\u5bcc\u7684\u8fd0\u7ef4\u4eba\u5458\u751a\u81f3\u90fd\u4e0d\u4f1a\u7ed9Linux\u7cfb\u7edf\u5b89\u88c5\u56fe\u5f62\u754c\u9762\uff0c\u9700\u8981\u5f00\u59cb\u8fd0\u7ef4\u5de5\u4f5c\u65f6\u76f4\u63a5\u901a\u8fc7\u547d\u4ee4\u884c\u6a21\u5f0f\u8fdc\u7a0b\u8fde\u63a5\u8fc7\u53bb\uff0c\u4e0d\u5f97\u4e0d\u8bf4\u8fd9\u6837\u505a\u786e\u5b9e\u633a\u9ad8\u6548\u7684\u3002<\/p>\n <\/p>\n \u56fe2-1\u00a0 \u7528\u6237\u4e0eLinux\u7cfb\u7edf\u7684\u4ea4\u4e92<\/p>\n Shell\u5c31\u662f\u8fd9\u6837\u7684\u4e00\u4e2a\u547d\u4ee4\u884c\u5de5\u5177\u3002Shell\uff08\u4e5f\u79f0\u4e3a\u7ec8\u7aef\u6216\u58f3\uff09\u5145\u5f53\u7684\u662f\u4eba\u4e0e\u5185\u6838\uff08\u786c\u4ef6\uff09\u4e4b\u95f4\u7684\u7ffb\u8bd1\u5b98\uff0c\u7528\u6237\u628a\u4e00\u4e9b\u547d\u4ee4\u201c\u544a\u8bc9\u201d\u7ec8\u7aef\uff0c\u5b83\u5c31\u4f1a\u8c03\u7528\u76f8\u5e94\u7684\u7a0b\u5e8f\u670d\u52a1\u53bb\u5b8c\u6210\u67d0\u4e9b\u5de5\u4f5c\u3002\u73b0\u5728\u5305\u62ec\u7ea2\u5e3d<\/a>\u7cfb\u7edf\u5728\u5185\u7684\u8bb8\u591a\u4e3b\u6d41Linux\u7cfb\u7edf\u9ed8\u8ba4\u4f7f\u7528\u7684\u7ec8\u7aef\u662fBash\uff08Bourne-Again SHell\uff09\u89e3\u91ca\u5668\u3002\u4e3b\u6d41Linux\u7cfb\u7edf\u9009\u62e9Bash\u89e3\u91ca\u5668\u4f5c\u4e3a\u547d\u4ee4\u884c\u7ec8\u7aef\u4e3b\u8981\u6709\u4ee5\u4e0b4\u9879\u4f18\u52bf\uff0c\u8bfb\u8005\u53ef\u4ee5\u5728\u4eca\u540e\u7684\u5b66\u4e60\u548c\u751f\u4ea7\u5de5\u4f5c\u4e2d\u7ec6\u7ec6\u4f53\u4f1aLinux\u7cfb\u7edf\u547d\u4ee4\u884c\u7684\u7f8e\u5999\u4e4b\u5904\uff0c\u771f\u6b63\u4ece\u5fc3\u91cc\u7231\u4e0a\u5b83\u4eec\u3002<\/p>\n 1\uff1a\u901a\u8fc7\u4e0a\u4e0b\u65b9\u5411\u952e\u6765\u8c03\u53d6\u8fc7\u5f80\u6267\u884c\u8fc7\u7684Linux\u547d\u4ee4\uff1b<\/p>\n 2\uff1a\u547d\u4ee4\u6216\u53c2\u6570\u4ec5\u9700\u8f93\u5165\u524d\u51e0\u4f4d\u5c31\u53ef\u4ee5\u7528Tab\u952e\u8865\u5168\uff1b<\/p>\n 3\uff1a\u5177\u6709\u5f3a\u5927\u7684\u6279\u5904\u7406\u811a\u672c\uff1b<\/p>\n 4\uff1a\u5177\u6709\u5b9e\u7528\u7684\u73af\u5883\u53d8\u91cf\u529f\u80fd\u3002<\/p><\/blockquote>\n \u65e2\u7136Linux\u7cfb\u7edf\u4e2d\u5df2\u7ecf\u6709\u4e86Bash\u8fd9\u4e48\u597d\u7528\u7684\u201c\u7ffb\u8bd1\u5b98\u201d\uff0c\u90a3\u4e48\u63a5\u4e0b\u6765\u5c31\u6709\u5fc5\u8981\u597d\u597d\u5b66\u4e60\u4e0b\u600e\u4e48\u8ddf\u5b83\u6c9f\u901a\u4e86\u3002\u8981\u60f3\u51c6\u786e\u3001\u9ad8\u6548\u5730\u5b8c\u6210\u5404\u79cd\u4efb\u52a1\uff0c\u4ec5\u4f9d\u8d56\u4e8e\u547d\u4ee4\u672c\u8eab\u662f\u4e0d\u591f\u7684\uff0c\u8fd8\u5e94\u8be5\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u6765\u7075\u6d3b\u8c03\u6574\u5404\u79cd\u547d\u4ee4\u7684\u53c2\u6570\u3002\u6bd4\u5982\uff0c\u6211\u4eec\u5207\u5bff\u53f8\u65f6\u5c3d\u7ba1\u53ef\u4ee5\u7528\u83dc\u5200\uff0c\u4f46\u7c73\u7c92\u4e00\u5b9a\u4f1a\u6492\u5f97\u6ee1\u5730\u90fd\u662f\uff0c\u56e0\u6b64\u5bff\u53f8\u5200\u4e0a\u8bbe\u8ba1\u7684\u7528\u4e8e\u900f\u6c14\u7684\u5706\u5b54\u5c31\u662f\u4e3a\u4e86\u66f4\u597d\u5730\u9002\u5e94\u573a\u666f\u800c\u989d\u5916\u589e\u52a0\u7684\u53c2\u6570\u3002\u5f53\u60a8\u5b66\u5b8c\u672c\u4e66\u5e76\u5177\u5907\u4e00\u5b9a\u7684\u5de5\u4f5c\u7ecf\u9a8c\u4e4b\u540e\uff0c\u4e00\u5b9a\u80fd\u591f\u9886\u609fLinux\u547d\u4ee4\u7684\u5965\u79d8\u3002\u5e38\u89c1\u6267\u884cLinux\u547d\u4ee4\u7684\u683c\u5f0f\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n \u547d\u4ee4\u540d\u79f0 [\u547d\u4ee4\u53c2\u6570] [\u547d\u4ee4\u5bf9\u8c61]<\/strong><\/p><\/blockquote>\n \u6ce8\u610f\uff0c\u547d\u4ee4\u540d\u79f0\u3001\u547d\u4ee4\u53c2\u6570\u3001\u547d\u4ee4\u5bf9\u8c61\u4e4b\u95f4\u8bf7\u7528\u7a7a\u683c\u952e\u5206\u9694\u3002<\/p>\n \u547d\u4ee4\u5bf9\u8c61\u4e00\u822c\u662f\u6307\u8981\u5904\u7406\u7684\u6587\u4ef6\u3001\u76ee\u5f55\u3001\u7528\u6237\u7b49\u8d44\u6e90\uff0c\u800c\u547d\u4ee4\u53c2\u6570\u53ef\u4ee5\u7528\u957f\u683c\u5f0f\uff08\u5b8c\u6574\u7684\u9009\u9879\u540d\u79f0\uff09\uff0c\u4e5f\u53ef\u4ee5\u7528\u77ed\u683c\u5f0f\uff08\u5355\u4e2a\u5b57\u6bcd\u7684\u7f29\u5199\uff09\uff0c\u4e24\u8005\u5206\u522b\u7528--\u4e0e-\u4f5c\u4e3a\u524d\u7f00\uff08\u793a\u4f8b\u8bf7\u89c1\u88682-1\uff09\u3002Linux\u65b0\u624b\u4e0d\u4f1a\u6267\u884c\u547d\u4ee4\u5927\u591a\u662f\u56e0\u4e3a\u53c2\u6570\u6bd4\u8f83\u590d\u6742\uff0c\u53c2\u6570\u503c\u9700\u8981\u968f\u4e0d\u540c\u7684\u547d\u4ee4\u548c\u9700\u6c42\u60c5\u51b5\u800c\u53d1\u751f\u6539\u53d8\u3002\u56e0\u6b64\uff0c\u8981\u60f3\u7075\u6d3b\u642d\u914d\u5404\u79cd\u53c2\u6570\uff0c\u6267\u884c\u81ea\u5df1\u60f3\u8981\u7684\u529f\u80fd\uff0c\u5219\u9700\u8981\u957f\u65f6\u95f4\u7684\u7ecf\u9a8c\u79ef\u7d2f\u4e86\u3002<\/p>\n \u88682-1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u547d\u4ee4\u53c2\u6570\u7684\u957f\u683c\u5f0f\u4e0e\u77ed\u683c\u5f0f\u793a\u4f8b<\/p>\n2.1 \u5f3a\u5927\u597d\u7528\u7684SHELL<\/strong><\/span><\/h5>\n
2.2 \u6267\u884c\u67e5\u770b\u5e2e\u52a9\u547d\u4ee4<\/strong><\/span><\/h5>\n