{"id":47995,"date":"2025-07-30T10:17:56","date_gmt":"2025-07-30T02:17:56","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/47995.html"},"modified":"2025-07-30T10:17:56","modified_gmt":"2025-07-30T02:17:56","slug":"%e3%80%90linux%e6%8c%87%e5%8d%97%e3%80%91linux%e5%bf%ab%e6%8d%b7%e9%94%ae%e4%b8%8e%e7%b3%bb%e7%bb%9f%e5%ae%9e%e7%94%a8%e6%8a%80%e5%b7%a7","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/47995.html","title":{"rendered":"\u3010Linux\u6307\u5357\u3011Linux\u5feb\u6377\u952e\u4e0e\u7cfb\u7edf\u5b9e\u7528\u6280\u5de7"},"content":{"rendered":"<h3>\u5f15\u8a00<\/h3>\n<p>\u5728Linux\u7cfb\u7edf\u64cd\u4f5c\u4e2d&#xff0c;\u5feb\u6377\u952e\u4e0e\u7cfb\u7edf\u5b9e\u7528\u6280\u5de7\u5982\u540c\u9ad8\u6548\u64cd\u4f5c\u7684&#034;\u52a0\u901f\u5668&#034;&#xff0c;\u80fd\u5927\u5e45\u63d0\u5347\u65e5\u5e38\u7ba1\u7406\u4e0e\u5f00\u53d1\u6548\u7387\u3002\u4eceTab\u952e\u7684\u667a\u80fd\u8865\u5168\u5230Ctrl&#043;C\u7684\u5f3a\u5236\u7ec8\u6b62&#xff0c;\u4ecedate\u547d\u4ee4\u7684\u65f6\u95f4\u683c\u5f0f\u5316\u5230find\u4e0egrep\u7684\u7ec4\u5408\u641c\u7d22&#xff0c;\u8fd9\u4e9b\u6280\u5de7\u6784\u6210\u4e86Linux\u9ad8\u6548\u64cd\u4f5c\u7684\u6838\u5fc3\u4f53\u7cfb\u3002<\/p>\n<p>\u672c\u6587\u5c06\u7cfb\u7edf\u89e3\u6790Linux\u5fc5\u5907\u5feb\u6377\u952e\u7684\u5e94\u7528\u573a\u666f\u3001\u7cfb\u7edf\u5de5\u5177\u7684\u8fdb\u9636\u7528\u6cd5\u3001\u547d\u4ee4\u5386\u53f2\u7ba1\u7406\u4e0e\u522b\u540d\u8bbe\u7f6e&#xff0c;\u5e76\u901a\u8fc7\u5b9e\u6218\u6848\u4f8b\u5c55\u793a\u5982\u4f55\u5c06\u8fd9\u4e9b\u6280\u5de7\u878d\u5165\u65e5\u5e38\u5de5\u4f5c\u6d41&#xff0c;\u5e2e\u52a9\u8bfb\u8005\u4ece&#034;\u547d\u4ee4\u6267\u884c\u8005&#034;\u5347\u7ea7\u4e3a&#034;\u6548\u7387\u4f18\u5316\u8005&#034;\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730021754-688980d2c6023.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>\u5f15\u8a00<\/li>\n<li>\u4e00\u3001\u5fc5\u5907\u5feb\u6377\u952e&#xff1a;\u63d0\u5347\u64cd\u4f5c\u6548\u7387\u7684\u6838\u5fc3\u6280\u80fd<\/li>\n<li>\n<ul>\n<li>1. \u547d\u4ee4\u8865\u5168\u4e0e\u81ea\u52a8\u5b8c\u6210&#xff1a;Tab\u952e<\/li>\n<li>\n<ul>\n<li>&#xff08;1&#xff09;\u57fa\u7840\u547d\u4ee4\u8865\u5168<\/li>\n<li>&#xff08;2&#xff09;\u6587\u4ef6\u4e0e\u76ee\u5f55\u8865\u5168<\/li>\n<li>&#xff08;3&#xff09;\u8fde\u7eed\u8865\u5168\u4e0e\u5019\u9009\u5217\u8868<\/li>\n<li>&#xff08;4&#xff09;\u8865\u5168\u914d\u7f6e\u4e0e\u81ea\u5b9a\u4e49<\/li>\n<\/ul>\n<\/li>\n<li>2. \u8fdb\u7a0b\u63a7\u5236\u5feb\u6377\u952e&#xff1a;Ctrl\u7ec4\u5408\u952e<\/li>\n<li>\n<ul>\n<li>&#xff08;1&#xff09;\u5f3a\u5236\u7ec8\u6b62\u8fdb\u7a0b&#xff1a;Ctrl&#043;C<\/li>\n<li>&#xff08;2&#xff09;\u7ed3\u675f\u8f93\u5165\u4e0e\u9000\u51fa&#xff1a;Ctrl&#043;D<\/li>\n<li>&#xff08;3&#xff09;\u6302\u8d77\u8fdb\u7a0b&#xff1a;Ctrl&#043;Z<\/li>\n<li>&#xff08;4&#xff09;\u6e05\u5c4f\u4e0e\u91cd\u7f6e&#xff1a;Ctrl&#043;L<\/li>\n<\/ul>\n<\/li>\n<li>3. \u5386\u53f2\u547d\u4ee4\u64cd\u4f5c&#xff1a;\u4e0a\u4e0b\u952e\u4e0e\u641c\u7d22<\/li>\n<li>\n<ul>\n<li>&#xff08;1&#xff09;\u7ffb\u9605\u5386\u53f2\u547d\u4ee4&#xff1a;\u4e0a\u4e0b\u65b9\u5411\u952e<\/li>\n<li>&#xff08;2&#xff09;\u641c\u7d22\u5386\u53f2\u547d\u4ee4&#xff1a;Ctrl&#043;R<\/li>\n<li>&#xff08;3&#xff09;\u5386\u53f2\u547d\u4ee4\u7ba1\u7406&#xff1a;history<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u4e8c\u3001\u7cfb\u7edf\u5b9e\u7528\u5de5\u5177&#xff1a;\u65f6\u95f4\u3001\u65e5\u5386\u4e0e\u6587\u672c\u5904\u7406<\/li>\n<li>\n<ul>\n<li>1. \u65f6\u95f4\u7ba1\u7406&#xff1a;date\u547d\u4ee4\u7684\u7075\u6d3b\u8fd0\u7528<\/li>\n<li>\n<ul>\n<li>&#xff08;1&#xff09;\u663e\u793a\u5f53\u524d\u65f6\u95f4<\/li>\n<li>&#xff08;2&#xff09;\u65f6\u95f4\u6233\u4e0e\u683c\u5f0f\u8f6c\u6362<\/li>\n<li>&#xff08;3&#xff09;\u65f6\u95f4\u8bbe\u7f6e\u4e0e\u8ba1\u7b97<\/li>\n<\/ul>\n<\/li>\n<li>2. \u65e5\u5386\u67e5\u770b&#xff1a;cal\u547d\u4ee4<\/li>\n<li>\n<ul>\n<li>&#xff08;1&#xff09;\u663e\u793a\u5f53\u524d\u6708\u4efd\u65e5\u5386<\/li>\n<li>&#xff08;2&#xff09;\u663e\u793a\u6307\u5b9a\u5e74\u6708\u65e5\u5386<\/li>\n<li>&#xff08;3&#xff09;\u7279\u6b8a\u683c\u5f0f\u65e5\u5386<\/li>\n<\/ul>\n<\/li>\n<li>3. \u6587\u672c\u8fc7\u6ee4\u4e0e\u641c\u7d22&#xff1a;grep\u4e0e\u7ba1\u9053\u7684\u9ad8\u7ea7\u7ec4\u5408<\/li>\n<li>\n<ul>\n<li>&#xff08;1&#xff09;\u65e5\u5fd7\u5b9e\u65f6\u8fc7\u6ee4<\/li>\n<li>&#xff08;2&#xff09;\u4ee3\u7801\u641c\u7d22\u4e0e\u66ff\u6362<\/li>\n<li>&#xff08;3&#xff09;\u6570\u636e\u7edf\u8ba1\u4e0e\u5206\u6790<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u4e09\u3001\u547d\u4ee4\u5386\u53f2\u4e0e\u522b\u540d&#xff1a;\u4e2a\u6027\u5316\u6548\u7387\u4f18\u5316<\/li>\n<li>\n<ul>\n<li>1. \u547d\u4ee4\u522b\u540d&#xff1a;alias\u7684\u5b9a\u5236\u5316\u5e94\u7528<\/li>\n<li>\n<ul>\n<li>&#xff08;1&#xff09;\u521b\u5efa\u4e34\u65f6\u522b\u540d<\/li>\n<li>&#xff08;2&#xff09;\u67e5\u770b\u4e0e\u5220\u9664\u522b\u540d<\/li>\n<li>&#xff08;3&#xff09;\u6c38\u4e45\u4fdd\u5b58\u522b\u540d<\/li>\n<\/ul>\n<\/li>\n<li>2. \u547d\u4ee4\u5386\u53f2\u7ba1\u7406&#xff1a;history\u7684\u9ad8\u7ea7\u7528\u6cd5<\/li>\n<li>\n<ul>\n<li>&#xff08;1&#xff09;\u5386\u53f2\u547d\u4ee4\u641c\u7d22<\/li>\n<li>&#xff08;2&#xff09;\u5386\u53f2\u547d\u4ee4\u7f16\u8f91<\/li>\n<li>&#xff08;3&#xff09;\u5386\u53f2\u547d\u4ee4\u914d\u7f6e<\/li>\n<\/ul>\n<\/li>\n<li>3. \u7ec8\u7aef\u590d\u7528&#xff1a;screen\u4e0etmux<\/li>\n<li>\n<ul>\n<li>&#xff08;1&#xff09;screen\u57fa\u672c\u64cd\u4f5c<\/li>\n<li>&#xff08;2&#xff09;tmux\u9ad8\u7ea7\u7528\u6cd5<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u56db\u3001\u7cfb\u7edf\u5b9e\u7528\u6280\u5de7&#xff1a;\u6e05\u5c4f\u3001\u641c\u7d22\u4e0e\u4e34\u65f6\u8ba1\u7b97<\/li>\n<li>\n<ul>\n<li>1. \u6e05\u5c4f\u4e0e\u7ec8\u7aef\u91cd\u7f6e&#xff1a;clear\u4e0ereset<\/li>\n<li>\n<ul>\n<li>&#xff08;1&#xff09;\u6e05\u9664\u5c4f\u5e55\u5185\u5bb9<\/li>\n<li>&#xff08;2&#xff09;\u91cd\u7f6e\u7ec8\u7aef\u72b6\u6001<\/li>\n<\/ul>\n<\/li>\n<li>2. \u5feb\u901f\u641c\u7d22\u4e0e\u5b9a\u4f4d&#xff1a;whereis\u4e0elocate<\/li>\n<li>\n<ul>\n<li>&#xff08;1&#xff09;\u5feb\u901f\u5b9a\u4f4d\u6587\u4ef6<\/li>\n<li>&#xff08;2&#xff09;\u5168\u7cfb\u7edf\u5feb\u901f\u641c\u7d22<\/li>\n<\/ul>\n<\/li>\n<li>3. \u4e34\u65f6\u8ba1\u7b97&#xff1a;bc\u547d\u4ee4\u7684\u4fbf\u6377\u4f7f\u7528<\/li>\n<li>\n<ul>\n<li>&#xff08;1&#xff09;\u4ea4\u4e92\u5f0f\u8ba1\u7b97<\/li>\n<li>&#xff08;2&#xff09;\u8868\u8fbe\u5f0f\u76f4\u63a5\u8ba1\u7b97<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u4e94\u3001\u6269\u5c55\u77e5\u8bc6&#xff1a;\u5feb\u6377\u952e\u4e0e\u6280\u5de7\u7684\u6df1\u5ea6\u5b9e\u8df5<\/li>\n<li>\n<ul>\n<li>1. \u5feb\u6377\u952e\u51b2\u7a81\u89e3\u51b3\u65b9\u6848<\/li>\n<li>\n<ul>\n<li>&#xff08;1&#xff09;\u67e5\u770b\u5feb\u6377\u952e\u914d\u7f6e<\/li>\n<li>&#xff08;2&#xff09;\u81ea\u5b9a\u4e49\u5feb\u6377\u952e<\/li>\n<\/ul>\n<\/li>\n<li>2. \u7ec8\u7aef\u7f8e\u5316\u4e0e\u6548\u7387\u63d0\u5347<\/li>\n<li>\n<ul>\n<li>&#xff08;1&#xff09;\u8bbe\u7f6e\u7ec8\u7aef\u989c\u8272\u4e3b\u9898<\/li>\n<li>&#xff08;2&#xff09;\u914d\u7f6e\u7ec8\u7aef\u5b57\u4f53<\/li>\n<\/ul>\n<\/li>\n<li>3. \u5b9e\u6218\u6848\u4f8b&#xff1a;\u9ad8\u6548\u5de5\u4f5c\u6d41\u642d\u5efa<\/li>\n<li>\n<ul>\n<li>\u6848\u4f8b&#xff1a;\u81ea\u52a8\u5316\u65e5\u5fd7\u5206\u6790\u5de5\u4f5c\u6d41<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u7ed3\u8bed<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u4e00\u3001\u5fc5\u5907\u5feb\u6377\u952e&#xff1a;\u63d0\u5347\u64cd\u4f5c\u6548\u7387\u7684\u6838\u5fc3\u6280\u80fd<\/h3>\n<h4>1. \u547d\u4ee4\u8865\u5168\u4e0e\u81ea\u52a8\u5b8c\u6210&#xff1a;Tab\u952e<\/h4>\n<h5>&#xff08;1&#xff09;\u57fa\u7840\u547d\u4ee4\u8865\u5168<\/h5>\n<p><span class=\"token comment\"># \u8f93\u5165\u90e8\u5206\u547d\u4ee4\u540e\u6309Tab\u8865\u5168<\/span><br \/>\n$ <span class=\"token builtin class-name\">cd<\/span> \/usr\/l    <span class=\"token comment\"># \u6309Tab\u8865\u5168\u4e3acd \/usr\/local\/<\/span><br \/>\n$ <span class=\"token function\">ls<\/span> \/etc\/ht   <span class=\"token comment\"># \u6309Tab\u8865\u5168\u4e3als \/etc\/httpd\/<\/span><\/p>\n<h5>&#xff08;2&#xff09;\u6587\u4ef6\u4e0e\u76ee\u5f55\u8865\u5168<\/h5>\n<p><span class=\"token comment\"># \u6587\u4ef6\u540d\u8865\u5168<\/span><br \/>\n$ <span class=\"token function\">vi<\/span> con    <span class=\"token comment\"># \u6309Tab\u8865\u5168\u4e3avi config.ini<\/span><br \/>\n$ <span class=\"token function\">rm<\/span> doc\/te  <span class=\"token comment\"># \u6309Tab\u8865\u5168\u4e3arm doc\/test.txt<\/span><\/p>\n<p><span class=\"token comment\"># \u76ee\u5f55\u8865\u5168<\/span><br \/>\n$ <span class=\"token builtin class-name\">cd<\/span> proj    <span class=\"token comment\"># \u6309Tab\u8865\u5168\u4e3acd project\/<\/span><br \/>\n$ <span class=\"token function\">cp<\/span> src\/ma  <span class=\"token comment\"># \u6309Tab\u8865\u5168\u4e3acp src\/main\/<\/span><\/p>\n<h5>&#xff08;3&#xff09;\u8fde\u7eed\u8865\u5168\u4e0e\u5019\u9009\u5217\u8868<\/h5>\n<p><span class=\"token comment\"># \u5b58\u5728\u591a\u4e2a\u5339\u914d\u9879\u65f6&#xff0c;\u6309\u4e24\u6b21Tab\u663e\u793a\u5019\u9009\u5217\u8868<\/span><br \/>\n$ <span class=\"token function\">ls<\/span> \/usr\/bin\/grep    <span class=\"token comment\"># \u8f93\u5165&#034;gre&#034;\u540e\u6309\u4e24\u6b21Tab\u663e\u793a&#xff1a;<\/span><br \/>\n<span class=\"token comment\"># grep     grepcidr  grepdir  grepenv  grepfa   grephun  grepkey  greplib  grepmac  grepmsg  grepnul  greppath  grepscript  grepssl  grepsync  greptest<\/span><\/p>\n<h5>&#xff08;4&#xff09;\u8865\u5168\u914d\u7f6e\u4e0e\u81ea\u5b9a\u4e49<\/h5>\n<p><span class=\"token comment\"># \u67e5\u770b\u5f53\u524d\u8865\u5168\u914d\u7f6e<\/span><br \/>\n$ <span class=\"token builtin class-name\">set<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> COMP<\/p>\n<p><span class=\"token comment\"># \u4e34\u65f6\u7981\u7528\u8865\u5168<\/span><br \/>\n$ <span class=\"token builtin class-name\">set<\/span> &#043;o tabcomplete<\/p>\n<p><span class=\"token comment\"># \u6c38\u4e45\u914d\u7f6e\u8865\u5168&#xff08;\u4fee\u6539~\/.inputrc&#xff09;<\/span><br \/>\n$ <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;set completion-ignore-case on&#034;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.inputrc<br \/>\n$ <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;set show-all-if-ambiguous on&#034;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.inputrc<br \/>\n$ <span class=\"token builtin class-name\">source<\/span> ~\/.inputrc<\/p>\n<h4>2. \u8fdb\u7a0b\u63a7\u5236\u5feb\u6377\u952e&#xff1a;Ctrl\u7ec4\u5408\u952e<\/h4>\n<h5>&#xff08;1&#xff09;\u5f3a\u5236\u7ec8\u6b62\u8fdb\u7a0b&#xff1a;Ctrl&#043;C<\/h5>\n<p><span class=\"token comment\"># \u7ec8\u6b62\u5361\u6b7b\u7684\u547d\u4ee4<\/span><br \/>\n$ <span class=\"token function\">wget<\/span> http:\/\/slow-server.com\/bigfile.iso  <span class=\"token comment\"># \u6309Ctrl&#043;C\u7ec8\u6b62\u4e0b\u8f7d<\/span><\/p>\n<p><span class=\"token comment\"># \u4e2d\u65ad\u957f\u65f6\u95f4\u8fd0\u884c\u7684\u811a\u672c<\/span><br \/>\n$ .\/long-running-script.sh  <span class=\"token comment\"># \u6309Ctrl&#043;C\u505c\u6b62\u811a\u672c\u6267\u884c<\/span><\/p>\n<h5>&#xff08;2&#xff09;\u7ed3\u675f\u8f93\u5165\u4e0e\u9000\u51fa&#xff1a;Ctrl&#043;D<\/h5>\n<p><span class=\"token comment\"># \u7ed3\u675f\u6807\u51c6\u8f93\u5165&#xff08;\u7b49\u4ef7\u4e8eEOF&#xff09;<\/span><br \/>\n$ <span class=\"token function\">cat<\/span> <span class=\"token operator\">&gt;<\/span> test.txt  <span class=\"token comment\"># \u8f93\u5165\u5185\u5bb9\u540e\u6309Ctrl&#043;D\u4fdd\u5b58\u9000\u51fa<\/span><\/p>\n<p><span class=\"token comment\"># \u9000\u51fa\u5f53\u524dShell\u4f1a\u8bdd<\/span><br \/>\n$ Ctrl&#043;D  <span class=\"token comment\"># \u7b49\u4ef7\u4e8eexit\u547d\u4ee4<\/span><\/p>\n<h5>&#xff08;3&#xff09;\u6302\u8d77\u8fdb\u7a0b&#xff1a;Ctrl&#043;Z<\/h5>\n<p><span class=\"token comment\"># \u6302\u8d77\u5f53\u524d\u8fdb\u7a0b\u5e76\u653e\u5165\u540e\u53f0<\/span><br \/>\n$ <span class=\"token function\">tar<\/span> -czvf bigfile.tgz \/data\/  <span class=\"token comment\"># \u6309Ctrl&#043;Z\u6682\u505c<\/span><\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u540e\u53f0\u8fdb\u7a0b<\/span><br \/>\n$ <span class=\"token function\">jobs<\/span><\/p>\n<p><span class=\"token comment\"># \u6062\u590d\u540e\u53f0\u8fdb\u7a0b\u5230\u524d\u53f0<\/span><br \/>\n$ <span class=\"token function\">fg<\/span> %1<\/p>\n<p><span class=\"token comment\"># \u540e\u53f0\u8fd0\u884c\u8fdb\u7a0b<\/span><br \/>\n$ <span class=\"token function\">bg<\/span> %1<\/p>\n<h5>&#xff08;4&#xff09;\u6e05\u5c4f\u4e0e\u91cd\u7f6e&#xff1a;Ctrl&#043;L<\/h5>\n<p><span class=\"token comment\"># \u6e05\u9664\u5f53\u524d\u7ec8\u7aef\u5c4f\u5e55\u5185\u5bb9<\/span><br \/>\n$ Ctrl&#043;L  <span class=\"token comment\"># \u7b49\u4ef7\u4e8eclear\u547d\u4ee4<\/span><\/p>\n<h4>3. \u5386\u53f2\u547d\u4ee4\u64cd\u4f5c&#xff1a;\u4e0a\u4e0b\u952e\u4e0e\u641c\u7d22<\/h4>\n<h5>&#xff08;1&#xff09;\u7ffb\u9605\u5386\u53f2\u547d\u4ee4&#xff1a;\u4e0a\u4e0b\u65b9\u5411\u952e<\/h5>\n<p><span class=\"token comment\"># \u5411\u4e0a\u952e\u67e5\u770b\u4e4b\u524d\u6267\u884c\u7684\u547d\u4ee4<\/span><br \/>\n$ \u5411\u4e0a\u952e  <span class=\"token comment\"># \u663e\u793a\u4e0a\u4e00\u6761\u547d\u4ee4<\/span><br \/>\n$ \u5411\u4e0a\u952e  <span class=\"token comment\"># \u663e\u793a\u66f4\u65e9\u7684\u547d\u4ee4<\/span><\/p>\n<p><span class=\"token comment\"># \u5411\u4e0b\u952e\u6062\u590d\u540e\u7eed\u547d\u4ee4<\/span><br \/>\n$ \u5411\u4e0b\u952e  <span class=\"token comment\"># \u6062\u590d\u4e0a\u4e00\u6761\u663e\u793a\u7684\u547d\u4ee4<\/span><\/p>\n<h5>&#xff08;2&#xff09;\u641c\u7d22\u5386\u53f2\u547d\u4ee4&#xff1a;Ctrl&#043;R<\/h5>\n<p><span class=\"token comment\"># \u4ea4\u4e92\u5f0f\u641c\u7d22\u5386\u53f2\u547d\u4ee4<\/span><br \/>\n$ Ctrl&#043;R  <span class=\"token comment\"># \u8f93\u5165\u5173\u952e\u8bcd\u641c\u7d22<\/span><br \/>\n<span class=\"token comment\"># \u793a\u4f8b\u8f93\u51fa&#xff1a;<\/span><br \/>\n<span class=\"token comment\"># (reverse-i-search)&#096;ssh&#039;: ssh root&#064;192.168.1.100<\/span><\/p>\n<h5>&#xff08;3&#xff09;\u5386\u53f2\u547d\u4ee4\u7ba1\u7406&#xff1a;history<\/h5>\n<p><span class=\"token comment\"># \u67e5\u770b\u6240\u6709\u5386\u53f2\u547d\u4ee4<\/span><br \/>\n$ <span class=\"token function\">history<\/span><\/p>\n<p><span class=\"token comment\"># \u6267\u884c\u7b2c100\u6761\u5386\u53f2\u547d\u4ee4<\/span><br \/>\n$ <span class=\"token operator\">!<\/span><span class=\"token number\">100<\/span><\/p>\n<p><span class=\"token comment\"># \u6267\u884c\u4e0a\u4e00\u6761\u4ee5&#034;git&#034;\u5f00\u5934\u7684\u547d\u4ee4<\/span><br \/>\n$ <span class=\"token operator\">!<\/span>git<\/p>\n<p><span class=\"token comment\"># \u6e05\u7a7a\u5386\u53f2\u547d\u4ee4<\/span><br \/>\n$ <span class=\"token function\">history<\/span> -c<\/p>\n<h3>\u4e8c\u3001\u7cfb\u7edf\u5b9e\u7528\u5de5\u5177&#xff1a;\u65f6\u95f4\u3001\u65e5\u5386\u4e0e\u6587\u672c\u5904\u7406<\/h3>\n<h4>1. \u65f6\u95f4\u7ba1\u7406&#xff1a;date\u547d\u4ee4\u7684\u7075\u6d3b\u8fd0\u7528<\/h4>\n<h5>&#xff08;1&#xff09;\u663e\u793a\u5f53\u524d\u65f6\u95f4<\/h5>\n<p><span class=\"token comment\"># \u663e\u793a\u9ed8\u8ba4\u683c\u5f0f\u65f6\u95f4<\/span><br \/>\n$ <span class=\"token function\">date<\/span><\/p>\n<p><span class=\"token comment\"># \u793a\u4f8b\u8f93\u51fa&#xff1a;Thu May 29 15:30:22 CST 2025<\/span><\/p>\n<p><span class=\"token comment\"># \u663e\u793a\u6307\u5b9a\u683c\u5f0f\u65f6\u95f4<\/span><br \/>\n$ <span class=\"token function\">date<\/span> &#043;<span class=\"token string\">&#034;%Y-%m-%d %H:%M:%S&#034;<\/span><br \/>\n<span class=\"token comment\"># \u793a\u4f8b\u8f93\u51fa&#xff1a;2025-05-29 15:30:22<\/span><\/p>\n<p><span class=\"token comment\"># \u663e\u793a\u65f6\u95f4\u6233&#xff08;\u79d2\u6570&#xff09;<\/span><br \/>\n$ <span class=\"token function\">date<\/span> &#043;%s<br \/>\n<span class=\"token comment\"># \u793a\u4f8b\u8f93\u51fa&#xff1a;1759135822<\/span><\/p>\n<h5>&#xff08;2&#xff09;\u65f6\u95f4\u6233\u4e0e\u683c\u5f0f\u8f6c\u6362<\/h5>\n<p><span class=\"token comment\"># \u5c06\u65f6\u95f4\u6233\u8f6c\u6362\u4e3a\u65e5\u671f\u683c\u5f0f<\/span><br \/>\n$ <span class=\"token function\">date<\/span> -d &#064;1759135822<br \/>\n<span class=\"token comment\"># \u793a\u4f8b\u8f93\u51fa&#xff1a;Thu May 29 15:30:22 CST 2025<\/span><\/p>\n<p><span class=\"token comment\"># \u5c06\u65e5\u671f\u8f6c\u6362\u4e3a\u65f6\u95f4\u6233<\/span><br \/>\n$ <span class=\"token function\">date<\/span> -d <span class=\"token string\">&#034;2025-05-29 15:30:22&#034;<\/span> &#043;%s<br \/>\n<span class=\"token comment\"># \u793a\u4f8b\u8f93\u51fa&#xff1a;1759135822<\/span><\/p>\n<h5>&#xff08;3&#xff09;\u65f6\u95f4\u8bbe\u7f6e\u4e0e\u8ba1\u7b97<\/h5>\n<p><span class=\"token comment\"># \u4fee\u6539\u7cfb\u7edf\u65f6\u95f4&#xff08;\u9700root\u6743\u9650&#xff09;<\/span><br \/>\n$ <span class=\"token function\">date<\/span> -s <span class=\"token string\">&#034;2025-05-29 15:30:00&#034;<\/span><\/p>\n<p><span class=\"token comment\"># \u8ba1\u7b97\u4e24\u5929\u540e\u7684\u65e5\u671f<\/span><br \/>\n$ <span class=\"token function\">date<\/span> -d <span class=\"token string\">&#034;&#043;2 days&#034;<\/span> &#043;<span class=\"token string\">&#034;%Y-%m-%d&#034;<\/span><br \/>\n<span class=\"token comment\"># \u793a\u4f8b\u8f93\u51fa&#xff1a;2025-05-31<\/span><\/p>\n<p><span class=\"token comment\"># \u8ba1\u7b971\u5c0f\u65f6\u524d\u7684\u65f6\u95f4<\/span><br \/>\n$ <span class=\"token function\">date<\/span> -d <span class=\"token string\">&#034;-1 hour&#034;<\/span> &#043;<span class=\"token string\">&#034;%H:%M:%S&#034;<\/span><br \/>\n<span class=\"token comment\"># \u793a\u4f8b\u8f93\u51fa&#xff1a;14:30:22<\/span><\/p>\n<h4>2. \u65e5\u5386\u67e5\u770b&#xff1a;cal\u547d\u4ee4<\/h4>\n<h5>&#xff08;1&#xff09;\u663e\u793a\u5f53\u524d\u6708\u4efd\u65e5\u5386<\/h5>\n<p>$ <span class=\"token function\">cal<\/span><\/p>\n<p><span class=\"token comment\"># \u793a\u4f8b\u8f93\u51fa&#xff1a;<\/span><br \/>\n<span class=\"token comment\">#      May 2025<\/span><br \/>\n<span class=\"token comment\"># Su Mo Tu We Th Fr Sa<\/span><br \/>\n<span class=\"token comment\">#  1  2  3  4  5  6  7<\/span><br \/>\n<span class=\"token comment\">#  8  9 10 11 12 13 14<\/span><br \/>\n<span class=\"token comment\"># 15 16 17 18 19 20 21<\/span><br \/>\n<span class=\"token comment\"># 22 23 24 25 26 27 28<\/span><br \/>\n<span class=\"token comment\"># 29 30 31<\/span><\/p>\n<h5>&#xff08;2&#xff09;\u663e\u793a\u6307\u5b9a\u5e74\u6708\u65e5\u5386<\/h5>\n<p><span class=\"token comment\"># \u663e\u793a2025\u5e74\u5168\u5e74\u65e5\u5386<\/span><br \/>\n$ <span class=\"token function\">cal<\/span> -y <span class=\"token number\">2025<\/span><\/p>\n<p><span class=\"token comment\"># \u663e\u793a2025\u5e7412\u6708\u65e5\u5386<\/span><br \/>\n$ <span class=\"token function\">cal<\/span> <span class=\"token number\">12<\/span> <span class=\"token number\">2025<\/span><\/p>\n<p><span class=\"token comment\"># \u663e\u793a\u6700\u8fd1\u4e09\u4e2a\u6708\u65e5\u5386<\/span><br \/>\n$ <span class=\"token function\">cal<\/span> -3<\/p>\n<h5>&#xff08;3&#xff09;\u7279\u6b8a\u683c\u5f0f\u65e5\u5386<\/h5>\n<p><span class=\"token comment\"># \u663e\u793a\u5e26\u5468\u6570\u7684\u65e5\u5386<\/span><br \/>\n$ <span class=\"token function\">cal<\/span> -w<\/p>\n<p><span class=\"token comment\"># \u663e\u793a\u6bcf\u4e2a\u65e5\u671f\u662f\u4e00\u5e74\u4e2d\u7684\u7b2c\u51e0\u5929<\/span><br \/>\n$ <span class=\"token function\">cal<\/span> -j<\/p>\n<p><span class=\"token comment\"># \u663e\u793a\u7d27\u51d1\u683c\u5f0f\u65e5\u5386<\/span><br \/>\n$ <span class=\"token function\">cal<\/span> -m<\/p>\n<h4>3. \u6587\u672c\u8fc7\u6ee4\u4e0e\u641c\u7d22&#xff1a;grep\u4e0e\u7ba1\u9053\u7684\u9ad8\u7ea7\u7ec4\u5408<\/h4>\n<h5>&#xff08;1&#xff09;\u65e5\u5fd7\u5b9e\u65f6\u8fc7\u6ee4<\/h5>\n<p><span class=\"token comment\"># \u5b9e\u65f6\u76d1\u63a7\u65e5\u5fd7\u5e76\u8fc7\u6ee4\u9519\u8bef\u4fe1\u606f<\/span><br \/>\n$ <span class=\"token function\">tail<\/span> -f \/var\/log\/app.log <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token string\">&#034;ERROR&#034;<\/span><\/p>\n<p><span class=\"token comment\"># \u76d1\u63a7\u591a\u4e2a\u65e5\u5fd7\u6587\u4ef6<\/span><br \/>\n$ <span class=\"token function\">tail<\/span> -f \/var\/log\/<span class=\"token punctuation\">{<\/span>access.log,error.log<span class=\"token punctuation\">}<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> -E <span class=\"token string\">&#034;404|500&#034;<\/span><\/p>\n<h5>&#xff08;2&#xff09;\u4ee3\u7801\u641c\u7d22\u4e0e\u66ff\u6362<\/h5>\n<p><span class=\"token comment\"># \u5728\u9879\u76ee\u4e2d\u641c\u7d22\u7279\u5b9a\u51fd\u6570<\/span><br \/>\n$ <span class=\"token function\">grep<\/span> -r <span class=\"token string\">&#034;processData&#034;<\/span> src\/<\/p>\n<p><span class=\"token comment\"># \u66ff\u6362\u6240\u6709\u6587\u4ef6\u4e2d\u7684\u65e7\u57df\u540d<\/span><br \/>\n$ <span class=\"token function\">grep<\/span> -rl <span class=\"token string\">&#034;olddomain.com&#034;<\/span> <span class=\"token builtin class-name\">.<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">xargs<\/span> <span class=\"token function\">sed<\/span> -i <span class=\"token string\">&#039;s\/olddomain.com\/newdomain.com\/g&#039;<\/span><\/p>\n<h5>&#xff08;3&#xff09;\u6570\u636e\u7edf\u8ba1\u4e0e\u5206\u6790<\/h5>\n<p><span class=\"token comment\"># \u7edf\u8ba1\u65e5\u5fd7\u4e2d\u5404IP\u8bbf\u95ee\u6b21\u6570<\/span><br \/>\n$ <span class=\"token function\">grep<\/span> <span class=\"token string\">&#034;2025-05-29&#034;<\/span> access.log <span class=\"token operator\">|<\/span> <span class=\"token function\">awk<\/span> <span class=\"token string\">&#039;{print <span class=\"token variable\">$1<\/span>}&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sort<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">uniq<\/span> -c <span class=\"token operator\">|<\/span> <span class=\"token function\">sort<\/span> -nr<\/p>\n<p><span class=\"token comment\"># \u5206\u6790\u63a5\u53e3\u8bbf\u95ee\u8017\u65f6<\/span><br \/>\n$ <span class=\"token function\">grep<\/span> <span class=\"token string\">&#034;API&#034;<\/span> access.log <span class=\"token operator\">|<\/span> <span class=\"token function\">awk<\/span> <span class=\"token string\">&#039;{print <span class=\"token variable\">$11<\/span>}&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sort<\/span> -nr <span class=\"token operator\">|<\/span> <span class=\"token function\">head<\/span> -n <span class=\"token number\">10<\/span><\/p>\n<h3>\u4e09\u3001\u547d\u4ee4\u5386\u53f2\u4e0e\u522b\u540d&#xff1a;\u4e2a\u6027\u5316\u6548\u7387\u4f18\u5316<\/h3>\n<h4>1. \u547d\u4ee4\u522b\u540d&#xff1a;alias\u7684\u5b9a\u5236\u5316\u5e94\u7528<\/h4>\n<h5>&#xff08;1&#xff09;\u521b\u5efa\u4e34\u65f6\u522b\u540d<\/h5>\n<p><span class=\"token comment\"># \u4e3als\u547d\u4ee4\u521b\u5efa\u5e26\u989c\u8272\u7684\u522b\u540d<\/span><br \/>\n$ <span class=\"token builtin class-name\">alias<\/span> <span class=\"token assign-left variable\">ll<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#039;ls -l &#8211;color&#061;auto&#039;<\/span><\/p>\n<p><span class=\"token comment\"># \u4e3a\u5e38\u7528\u547d\u4ee4\u7ec4\u5408\u521b\u5efa\u522b\u540d<\/span><br \/>\n$ <span class=\"token builtin class-name\">alias<\/span> <span class=\"token assign-left variable\">grep<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#039;grep &#8211;color&#061;auto&#039;<\/span><br \/>\n$ <span class=\"token builtin class-name\">alias<\/span> <span class=\"token assign-left variable\">df<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#039;df -h&#039;<\/span><\/p>\n<h5>&#xff08;2&#xff09;\u67e5\u770b\u4e0e\u5220\u9664\u522b\u540d<\/h5>\n<p><span class=\"token comment\"># \u67e5\u770b\u6240\u6709\u5df2\u5b9a\u4e49\u7684\u522b\u540d<\/span><br \/>\n$ <span class=\"token builtin class-name\">alias<\/span><\/p>\n<p><span class=\"token comment\"># \u5220\u9664\u6307\u5b9a\u522b\u540d<\/span><br \/>\n$ <span class=\"token builtin class-name\">unalias<\/span> ll<\/p>\n<h5>&#xff08;3&#xff09;\u6c38\u4e45\u4fdd\u5b58\u522b\u540d<\/h5>\n<p><span class=\"token comment\"># \u5199\u5165bash\u914d\u7f6e\u6587\u4ef6<\/span><br \/>\n$ <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;alias ll&#061;&#039;ls -l &#8211;color&#061;auto&#039;&#034;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.bashrc<br \/>\n$ <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;alias la&#061;&#039;ls -la &#8211;color&#061;auto&#039;&#034;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.bashrc<\/p>\n<p><span class=\"token comment\"># \u4f7f\u914d\u7f6e\u751f\u6548<\/span><br \/>\n$ <span class=\"token builtin class-name\">source<\/span> ~\/.bashrc<\/p>\n<h4>2. \u547d\u4ee4\u5386\u53f2\u7ba1\u7406&#xff1a;history\u7684\u9ad8\u7ea7\u7528\u6cd5<\/h4>\n<h5>&#xff08;1&#xff09;\u5386\u53f2\u547d\u4ee4\u641c\u7d22<\/h5>\n<p><span class=\"token comment\"># \u641c\u7d22\u5305\u542b&#034;git&#034;\u7684\u5386\u53f2\u547d\u4ee4<\/span><br \/>\n$ <span class=\"token function\">history<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token function\">git<\/span><\/p>\n<p><span class=\"token comment\"># \u6267\u884c\u5386\u53f2\u4e2d\u7684\u7b2c123\u6761\u547d\u4ee4<\/span><br \/>\n$ <span class=\"token operator\">!<\/span><span class=\"token number\">123<\/span><\/p>\n<h5>&#xff08;2&#xff09;\u5386\u53f2\u547d\u4ee4\u7f16\u8f91<\/h5>\n<p><span class=\"token comment\"># \u7f16\u8f91\u5386\u53f2\u547d\u4ee4&#xff08;\u8c03\u7528\u9ed8\u8ba4\u7f16\u8f91\u5668&#xff09;<\/span><br \/>\n$ fc -e <span class=\"token function\">vi<\/span> <span class=\"token number\">100<\/span>  <span class=\"token comment\"># \u7f16\u8f91\u7b2c100\u6761\u547d\u4ee4<\/span><\/p>\n<p><span class=\"token comment\"># \u91cd\u65b0\u6267\u884c\u6700\u8fd1\u7684\u547d\u4ee4\u5e76\u4fee\u6539\u53c2\u6570<\/span><br \/>\n$ fc -s last-command new-argument<\/p>\n<h5>&#xff08;3&#xff09;\u5386\u53f2\u547d\u4ee4\u914d\u7f6e<\/h5>\n<p><span class=\"token comment\"># \u67e5\u770b\u5386\u53f2\u547d\u4ee4\u914d\u7f6e<\/span><br \/>\n$ <span class=\"token function\">cat<\/span> ~\/.bashrc <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> HIST<\/p>\n<p><span class=\"token comment\"># \u589e\u52a0\u5386\u53f2\u547d\u4ee4\u8bb0\u5f55\u6570\u91cf&#xff08;\u9ed8\u8ba41000\u6761&#xff09;<\/span><br \/>\n$ <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;HISTSIZE&#061;5000&#034;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.bashrc<\/p>\n<p><span class=\"token comment\"># \u4e0d\u8bb0\u5f55\u7279\u5b9a\u547d\u4ee4\u5230\u5386\u53f2<\/span><br \/>\n$ <span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">HISTIGNORE<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;ls:cd:pwd:exit:clear&#034;<\/span><\/p>\n<h4>3. \u7ec8\u7aef\u590d\u7528&#xff1a;screen\u4e0etmux<\/h4>\n<h5>&#xff08;1&#xff09;screen\u57fa\u672c\u64cd\u4f5c<\/h5>\n<p><span class=\"token comment\"># \u5b89\u88c5screen<\/span><br \/>\n$ yum <span class=\"token function\">install<\/span> -y <span class=\"token function\">screen<\/span><\/p>\n<p><span class=\"token comment\"># \u521b\u5efa\u65b0\u4f1a\u8bdd<\/span><br \/>\n$ <span class=\"token function\">screen<\/span> -S mysession<\/p>\n<p><span class=\"token comment\"># \u5206\u79bb\u4f1a\u8bdd&#xff08;\u4fdd\u6301\u8fd0\u884c&#xff09;<\/span><br \/>\n$ Ctrl&#043;A D<\/p>\n<p><span class=\"token comment\"># \u5217\u51fa\u6240\u6709\u4f1a\u8bdd<\/span><br \/>\n$ <span class=\"token function\">screen<\/span> -ls<\/p>\n<p><span class=\"token comment\"># \u6062\u590d\u4f1a\u8bdd<\/span><br \/>\n$ <span class=\"token function\">screen<\/span> -r mysession<\/p>\n<h5>&#xff08;2&#xff09;tmux\u9ad8\u7ea7\u7528\u6cd5<\/h5>\n<p><span class=\"token comment\"># \u5b89\u88c5tmux<\/span><br \/>\n$ yum <span class=\"token function\">install<\/span> -y tmux<\/p>\n<p><span class=\"token comment\"># \u521b\u5efa\u65b0\u7a97\u53e3<\/span><br \/>\n$ tmux new -s mywindow<\/p>\n<p><span class=\"token comment\"># \u5206\u5272\u7a97\u53e3<\/span><br \/>\n$ Ctrl&#043;B %  <span class=\"token comment\"># \u6c34\u5e73\u5206\u5272<\/span><br \/>\n$ Ctrl&#043;B &#034;  <span class=\"token comment\"># \u5782\u76f4\u5206\u5272<\/span><\/p>\n<p><span class=\"token comment\"># \u5207\u6362\u7a97\u53e3<\/span><br \/>\n$ Ctrl&#043;B <span class=\"token number\">0<\/span>-9  <span class=\"token comment\"># \u5207\u6362\u5230\u6307\u5b9a\u7a97\u53e3<\/span><\/p>\n<h3>\u56db\u3001\u7cfb\u7edf\u5b9e\u7528\u6280\u5de7&#xff1a;\u6e05\u5c4f\u3001\u641c\u7d22\u4e0e\u4e34\u65f6\u8ba1\u7b97<\/h3>\n<h4>1. \u6e05\u5c4f\u4e0e\u7ec8\u7aef\u91cd\u7f6e&#xff1a;clear\u4e0ereset<\/h4>\n<h5>&#xff08;1&#xff09;\u6e05\u9664\u5c4f\u5e55\u5185\u5bb9<\/h5>\n<p><span class=\"token comment\"># \u6e05\u5c4f&#xff08;\u7b49\u4ef7\u4e8eCtrl&#043;L&#xff09;<\/span><br \/>\n$ <span class=\"token function\">clear<\/span><\/p>\n<p><span class=\"token comment\"># \u6e05\u5c4f\u5e76\u5c06\u5149\u6807\u79fb\u5230\u5de6\u4e0a\u89d2<\/span><br \/>\n$ tput <span class=\"token function\">clear<\/span><\/p>\n<h5>&#xff08;2&#xff09;\u91cd\u7f6e\u7ec8\u7aef\u72b6\u6001<\/h5>\n<p><span class=\"token comment\"># \u4fee\u590d\u6df7\u4e71\u7684\u7ec8\u7aef\u663e\u793a<\/span><br \/>\n$ reset<\/p>\n<p><span class=\"token comment\"># \u624b\u52a8\u91cd\u7f6e\u7ec8\u7aef\u5c5e\u6027<\/span><br \/>\n$ tput sgr0  <span class=\"token comment\"># \u91cd\u7f6e\u6240\u6709\u5c5e\u6027<\/span><br \/>\n$ tput civis  <span class=\"token comment\"># \u9690\u85cf\u5149\u6807<\/span><br \/>\n$ tput cnorm  <span class=\"token comment\"># \u663e\u793a\u5149\u6807<\/span><\/p>\n<h4>2. \u5feb\u901f\u641c\u7d22\u4e0e\u5b9a\u4f4d&#xff1a;whereis\u4e0elocate<\/h4>\n<h5>&#xff08;1&#xff09;\u5feb\u901f\u5b9a\u4f4d\u6587\u4ef6<\/h5>\n<p><span class=\"token comment\"># \u67e5\u627e\u547d\u4ee4\u3001\u6e90\u7801\u548c\u5e2e\u52a9\u6587\u6863<\/span><br \/>\n$ <span class=\"token function\">whereis<\/span> <span class=\"token function\">ssh<\/span><\/p>\n<p><span class=\"token comment\"># \u793a\u4f8b\u8f93\u51fa&#xff1a;<\/span><br \/>\n<span class=\"token comment\"># ssh: \/usr\/bin\/ssh \/usr\/libexec\/ssh \/etc\/ssh \/usr\/share\/man\/man1\/ssh.1.gz \/usr\/share\/man\/man8\/ssh.8.gz<\/span><\/p>\n<h5>&#xff08;2&#xff09;\u5168\u7cfb\u7edf\u5feb\u901f\u641c\u7d22<\/h5>\n<p><span class=\"token comment\"># \u5b89\u88c5locate&#xff08;\u9ed8\u8ba4\u5df2\u5b89\u88c5&#xff09;<\/span><br \/>\n$ yum <span class=\"token function\">install<\/span> -y mlocate<\/p>\n<p><span class=\"token comment\"># \u66f4\u65b0\u6570\u636e\u5e93&#xff08;\u9996\u6b21\u4f7f\u7528\u9700\u6267\u884c&#xff09;<\/span><br \/>\n$ updatedb<\/p>\n<p><span class=\"token comment\"># \u641c\u7d22\u6587\u4ef6<\/span><br \/>\n$ <span class=\"token function\">locate<\/span> config.ini<\/p>\n<h4>3. \u4e34\u65f6\u8ba1\u7b97&#xff1a;bc\u547d\u4ee4\u7684\u4fbf\u6377\u4f7f\u7528<\/h4>\n<h5>&#xff08;1&#xff09;\u4ea4\u4e92\u5f0f\u8ba1\u7b97<\/h5>\n<p><span class=\"token comment\"># \u542f\u52a8bc\u8ba1\u7b97\u5668<\/span><br \/>\n$ <span class=\"token function\">bc<\/span><\/p>\n<p><span class=\"token comment\"># \u793a\u4f8b\u8ba1\u7b97&#xff1a;<\/span><br \/>\n<span class=\"token number\">100<\/span> &#043; <span class=\"token number\">200<\/span><br \/>\n<span class=\"token number\">50<\/span> * <span class=\"token number\">3<\/span><br \/>\n<span class=\"token number\">100<\/span> \/ <span class=\"token number\">7<\/span><br \/>\nsqrt<span class=\"token punctuation\">(<\/span><span class=\"token number\">25<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token number\">2<\/span>^3<\/p>\n<h5>&#xff08;2&#xff09;\u8868\u8fbe\u5f0f\u76f4\u63a5\u8ba1\u7b97<\/h5>\n<p><span class=\"token comment\"># \u8ba1\u7b97\u8868\u8fbe\u5f0f&#xff08;\u65e0\u9700\u8fdb\u5165\u4ea4\u4e92\u6a21\u5f0f&#xff09;<\/span><br \/>\n$ <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;100 * 3.14&#034;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">bc<\/span><\/p>\n<p><span class=\"token comment\"># \u8ba1\u7b97\u5e26\u5c0f\u6570\u7684\u7ed3\u679c<\/span><br \/>\n$ <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;scale&#061;2; 10\/3&#034;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">bc<\/span>  <span class=\"token comment\"># \u8f93\u51fa3.33<\/span><\/p>\n<p><span class=\"token comment\"># \u8ba1\u7b97\u590d\u6742\u8868\u8fbe\u5f0f<\/span><br \/>\n$ <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;((10&#043;5)*3-2)\/4&#034;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">bc<\/span><\/p>\n<h3>\u4e94\u3001\u6269\u5c55\u77e5\u8bc6&#xff1a;\u5feb\u6377\u952e\u4e0e\u6280\u5de7\u7684\u6df1\u5ea6\u5b9e\u8df5<\/h3>\n<h4>1. \u5feb\u6377\u952e\u51b2\u7a81\u89e3\u51b3\u65b9\u6848<\/h4>\n<h5>&#xff08;1&#xff09;\u67e5\u770b\u5feb\u6377\u952e\u914d\u7f6e<\/h5>\n<p><span class=\"token comment\"># \u67e5\u770b\u5f53\u524dShell\u7684\u5feb\u6377\u952e\u7ed1\u5b9a<\/span><br \/>\n$ <span class=\"token builtin class-name\">bind<\/span> -p<\/p>\n<p><span class=\"token comment\"># \u67e5\u770breadline\u5e93\u7684\u5feb\u6377\u952e<\/span><br \/>\n$ <span class=\"token function\">man<\/span> readline<\/p>\n<h5>&#xff08;2&#xff09;\u81ea\u5b9a\u4e49\u5feb\u6377\u952e<\/h5>\n<p><span class=\"token comment\"># \u7ed1\u5b9aCtrl&#043;Alt&#043;T\u5230\u65b0\u547d\u4ee4<\/span><br \/>\n$ <span class=\"token builtin class-name\">bind<\/span> <span class=\"token string\">&#039;&#034;<span class=\"token entity\" title=\"\\\\e\">\\\\e<\/span>[1;3T&#034;: &#034;cd \/tmp\/&#034;&#039;<\/span><\/p>\n<p><span class=\"token comment\"># \u6c38\u4e45\u751f\u6548&#xff08;\u4fee\u6539~\/.inputrc&#xff09;<\/span><br \/>\n$ <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#039;&#034;<span class=\"token entity\" title=\"\\\\e\">\\\\e<\/span>[1;3T&#034;: &#034;cd \/tmp\/&#034;&#039;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.inputrc<br \/>\n$ <span class=\"token builtin class-name\">source<\/span> ~\/.inputrc<\/p>\n<h4>2. \u7ec8\u7aef\u7f8e\u5316\u4e0e\u6548\u7387\u63d0\u5347<\/h4>\n<h5>&#xff08;1&#xff09;\u8bbe\u7f6e\u7ec8\u7aef\u989c\u8272\u4e3b\u9898<\/h5>\n<p><span class=\"token comment\"># \u5b89\u88c5oh-my-zsh&#xff08;\u7f8e\u5316Shell&#xff09;<\/span><br \/>\n$ yum <span class=\"token function\">install<\/span> -y <span class=\"token function\">zsh<\/span><br \/>\n$ <span class=\"token function\">sh<\/span> -c <span class=\"token string\">&#034;<span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">curl<\/span> -fsSL https:\/\/raw.githubusercontent.com\/ohmyzsh\/ohmyzsh\/master\/tools\/install.sh<span class=\"token variable\">)<\/span><\/span>&#034;<\/span><\/p>\n<p><span class=\"token comment\"># \u5207\u6362\u4e3b\u9898<\/span><br \/>\n$ <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;ZSH_THEME&#061;<span class=\"token entity\" title=\"\\\\&#034;\">\\\\&#034;<\/span>agnoster<span class=\"token entity\" title=\"\\\\&#034;\">\\\\&#034;<\/span>&#034;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.zshrc<br \/>\n$ <span class=\"token builtin class-name\">source<\/span> ~\/.zshrc<\/p>\n<h5>&#xff08;2&#xff09;\u914d\u7f6e\u7ec8\u7aef\u5b57\u4f53<\/h5>\n<p><span class=\"token comment\"># \u5b89\u88c5Powerline\u5b57\u4f53<\/span><br \/>\n$ yum <span class=\"token function\">install<\/span> -y powerline-fonts<\/p>\n<p><span class=\"token comment\"># \u914d\u7f6e\u7ec8\u7aef\u4f7f\u7528Powerline\u5b57\u4f53&#xff08;\u5982GNOME Terminal&#xff09;&#xff1a;<\/span><br \/>\n<span class=\"token comment\"># 1. \u6253\u5f00\u7ec8\u7aef\u9996\u9009\u9879<\/span><br \/>\n<span class=\"token comment\"># 2. \u9009\u62e9&#034;\u5b57\u4f53&#034;\u9009\u9879\u5361<\/span><br \/>\n<span class=\"token comment\"># 3. \u9009\u62e9Powerline\u5b57\u4f53&#xff08;\u5982Source Code Pro for Powerline&#xff09;<\/span><\/p>\n<h4>3. \u5b9e\u6218\u6848\u4f8b&#xff1a;\u9ad8\u6548\u5de5\u4f5c\u6d41\u642d\u5efa<\/h4>\n<h5>\u6848\u4f8b&#xff1a;\u81ea\u52a8\u5316\u65e5\u5fd7\u5206\u6790\u5de5\u4f5c\u6d41<\/h5>\n<p><span class=\"token comment\"># 1. \u5feb\u901f\u5b9a\u4f4d\u4eca\u65e5\u9519\u8bef\u65e5\u5fd7<\/span><br \/>\n$ <span class=\"token builtin class-name\">alias<\/span> <span class=\"token assign-left variable\">today_err<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#039;grep &#034;<span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">date<\/span> &#043;<span class=\"token string\">&#034;%Y-%m-%d&#034;<\/span><span class=\"token variable\">)<\/span><\/span> ERROR&#034; \/var\/log\/app.log&#039;<\/span><\/p>\n<p><span class=\"token comment\"># 2. \u5206\u6790\u9519\u8bef\u5206\u5e03<\/span><br \/>\n$ today_err <span class=\"token operator\">|<\/span> <span class=\"token function\">awk<\/span> <span class=\"token string\">&#039;{print <span class=\"token variable\">$NF<\/span>}&#039;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sort<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">uniq<\/span> -c <span class=\"token operator\">|<\/span> <span class=\"token function\">sort<\/span> -nr<\/p>\n<p><span class=\"token comment\"># 3. \u8ffd\u8e2a\u7279\u5b9a\u9519\u8bef<\/span><br \/>\n$ today_err <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token string\">&#034;DatabaseConnection&#034;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">tail<\/span> -20<\/p>\n<p><span class=\"token comment\"># 4. \u81ea\u52a8\u5316\u751f\u6210\u9519\u8bef\u62a5\u544a<\/span><br \/>\n$ today_err <span class=\"token operator\">|<\/span> <span class=\"token function\">head<\/span> -100 <span class=\"token operator\">&gt;<\/span> error_report_<span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">date<\/span> &#043;%Y%m%d<span class=\"token variable\">)<\/span><\/span>.txt<\/p>\n<h3>\u7ed3\u8bed<\/h3>\n<p>\u901a\u8fc7\u638c\u63e1Linux\u5feb\u6377\u952e\u4e0e\u7cfb\u7edf\u5b9e\u7528\u6280\u5de7&#xff0c;\u8bfb\u8005\u5c06\u80fd\u591f\u5c06\u65e5\u5e38\u64cd\u4f5c\u6548\u7387\u63d0\u5347\u6570\u500d&#xff0c;\u4ece\u7e41\u7410\u7684\u547d\u4ee4\u8f93\u5165\u4e2d\u89e3\u653e\u51fa\u6765&#xff0c;\u4e13\u6ce8\u4e8e\u6838\u5fc3\u4efb\u52a1\u3002\u65e0\u8bba\u662fTab\u952e\u7684\u667a\u80fd\u8865\u5168\u3001Ctrl&#043;R\u7684\u5386\u53f2\u641c\u7d22&#xff0c;\u8fd8\u662fdate\u4e0ecal\u7684\u65f6\u95f4\u7ba1\u7406&#xff0c;\u8fd9\u4e9b\u6280\u5de7\u6784\u6210\u4e86Linux\u9ad8\u6548\u64cd\u4f5c\u7684\u57fa\u7840\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d&#xff0c;\u5efa\u8bae\u7ed3\u5408\u4e2a\u4eba\u5de5\u4f5c\u6d41\u5b9a\u5236alias\u4e0e\u5feb\u6377\u952e&#xff0c;\u5efa\u7acb\u7b26\u5408\u81ea\u8eab\u4e60\u60ef\u7684\u64cd\u4f5c\u4f53\u7cfb&#xff0c;\u6700\u7ec8\u5b9e\u73b0\u4ece&#034;\u719f\u7ec3\u4f7f\u7528\u8005&#034;\u5230&#034;\u9ad8\u6548\u7ba1\u7406\u8005&#034;\u7684\u8715\u53d8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.8k\u6b21\uff0c\u70b9\u8d5e127\u6b21\uff0c\u6536\u85cf104\u6b21\u3002\u672c\u6587\u5c06\u7cfb\u7edf\u89e3\u6790Linux\u5fc5\u5907\u5feb\u6377\u952e\u7684\u5e94\u7528\u573a\u666f\u3001\u7cfb\u7edf\u5de5\u5177\u7684\u8fdb\u9636\u7528\u6cd5\u3001\u547d\u4ee4\u5386\u53f2\u7ba1\u7406\u4e0e\u522b\u540d\u8bbe\u7f6e\uff0c\u5e76\u901a\u8fc7\u5b9e\u6218\u6848\u4f8b\u5c55\u793a\u5982\u4f55\u5c06\u8fd9\u4e9b\u6280\u5de7\u878d\u5165\u65e5\u5e38\u5de5\u4f5c\u6d41\uff0c\u5e2e\u52a9\u8bfb\u8005\u4ece&quot;\u547d\u4ee4\u6267\u884c\u8005&quot;\u5347\u7ea7\u4e3a&quot;\u6548\u7387\u4f18\u5316\u8005&quot;\u3002<\/p>\n","protected":false},"author":2,"featured_media":47994,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,3026,43,44],"topic":[],"class_list":{"0":"post-47995","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-server","8":"tag-linux","10":"tag-43","11":"tag-44"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010Linux\u6307\u5357\u3011Linux\u5feb\u6377\u952e\u4e0e\u7cfb\u7edf\u5b9e\u7528\u6280\u5de7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/47995.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Linux\u6307\u5357\u3011Linux\u5feb\u6377\u952e\u4e0e\u7cfb\u7edf\u5b9e\u7528\u6280\u5de7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.8k\u6b21\uff0c\u70b9\u8d5e127\u6b21\uff0c\u6536\u85cf104\u6b21\u3002\u672c\u6587\u5c06\u7cfb\u7edf\u89e3\u6790Linux\u5fc5\u5907\u5feb\u6377\u952e\u7684\u5e94\u7528\u573a\u666f\u3001\u7cfb\u7edf\u5de5\u5177\u7684\u8fdb\u9636\u7528\u6cd5\u3001\u547d\u4ee4\u5386\u53f2\u7ba1\u7406\u4e0e\u522b\u540d\u8bbe\u7f6e\uff0c\u5e76\u901a\u8fc7\u5b9e\u6218\u6848\u4f8b\u5c55\u793a\u5982\u4f55\u5c06\u8fd9\u4e9b\u6280\u5de7\u878d\u5165\u65e5\u5e38\u5de5\u4f5c\u6d41\uff0c\u5e2e\u52a9\u8bfb\u8005\u4ece&quot;\u547d\u4ee4\u6267\u884c\u8005&quot;\u5347\u7ea7\u4e3a&quot;\u6548\u7387\u4f18\u5316\u8005&quot;\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/47995.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-30T02:17:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730021754-688980d2c6023.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/47995.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/47995.html\",\"name\":\"\u3010Linux\u6307\u5357\u3011Linux\u5feb\u6377\u952e\u4e0e\u7cfb\u7edf\u5b9e\u7528\u6280\u5de7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-30T02:17:56+00:00\",\"dateModified\":\"2025-07-30T02:17:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/47995.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/47995.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/47995.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Linux\u6307\u5357\u3011Linux\u5feb\u6377\u952e\u4e0e\u7cfb\u7edf\u5b9e\u7528\u6280\u5de7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Linux\u6307\u5357\u3011Linux\u5feb\u6377\u952e\u4e0e\u7cfb\u7edf\u5b9e\u7528\u6280\u5de7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/47995.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010Linux\u6307\u5357\u3011Linux\u5feb\u6377\u952e\u4e0e\u7cfb\u7edf\u5b9e\u7528\u6280\u5de7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.8k\u6b21\uff0c\u70b9\u8d5e127\u6b21\uff0c\u6536\u85cf104\u6b21\u3002\u672c\u6587\u5c06\u7cfb\u7edf\u89e3\u6790Linux\u5fc5\u5907\u5feb\u6377\u952e\u7684\u5e94\u7528\u573a\u666f\u3001\u7cfb\u7edf\u5de5\u5177\u7684\u8fdb\u9636\u7528\u6cd5\u3001\u547d\u4ee4\u5386\u53f2\u7ba1\u7406\u4e0e\u522b\u540d\u8bbe\u7f6e\uff0c\u5e76\u901a\u8fc7\u5b9e\u6218\u6848\u4f8b\u5c55\u793a\u5982\u4f55\u5c06\u8fd9\u4e9b\u6280\u5de7\u878d\u5165\u65e5\u5e38\u5de5\u4f5c\u6d41\uff0c\u5e2e\u52a9\u8bfb\u8005\u4ece&quot;\u547d\u4ee4\u6267\u884c\u8005&quot;\u5347\u7ea7\u4e3a&quot;\u6548\u7387\u4f18\u5316\u8005&quot;\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/47995.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-30T02:17:56+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730021754-688980d2c6023.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/47995.html","url":"https:\/\/www.wsisp.com\/helps\/47995.html","name":"\u3010Linux\u6307\u5357\u3011Linux\u5feb\u6377\u952e\u4e0e\u7cfb\u7edf\u5b9e\u7528\u6280\u5de7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-30T02:17:56+00:00","dateModified":"2025-07-30T02:17:56+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/47995.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/47995.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/47995.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010Linux\u6307\u5357\u3011Linux\u5feb\u6377\u952e\u4e0e\u7cfb\u7edf\u5b9e\u7528\u6280\u5de7"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/47995","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=47995"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/47995\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/47994"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=47995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=47995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=47995"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=47995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}