{"id":85149,"date":"2023-12-15T09:17:44","date_gmt":"2023-12-15T01:17:44","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=85149"},"modified":"2023-12-15T09:17:44","modified_gmt":"2023-12-15T01:17:44","slug":"top-7-things-linux","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/top-7-things-linux.html","title":{"rendered":"\u4e03\u4ef6\u4f60\u4e0d\u5f97\u4e0d\u77e5\u7684Linux\u5c0f\u6280\u5de7"},"content":{"rendered":"
\u4f7f\u7528 Linux \u6700\u9177\u7684\u4e8b\u60c5\u4e4b\u4e00\u5c31\u662f\u968f\u7740\u65f6\u95f4\u7684\u63a8\u79fb\uff0c\u4f60\u53ef\u4ee5\u4e0d\u65ad\u83b7\u5f97\u65b0\u7684\u77e5\u8bc6\u3002\u6bcf\u5929\uff0c\u4f60\u90fd\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e2a\u65b0\u7684\u5b9e\u7528\u5de5\u5177\uff0c\u6216\u8005\u53ea\u662f\u4e00\u4e2a\u4e0d\u592a\u719f\u6089\u7684\u5947\u6280\u6deb\u5de7\uff0c\u4f46\u662f\u5374\u975e\u5e38\u6709\u7528\u3002\u8fd9\u4e9b\u96f6\u788e\u7684\u4e1c\u897f\u5e76\u4e0d\u603b\u662f\u80fd\u591f\u6539\u53d8\u751f\u6d3b\uff0c\u4f46\u662f\u5374\u662f\u4e13\u4e1a\u77e5\u8bc6\u7684\u57fa\u7840\u3002<\/p>\n
\u5373\u4f7f\u662f\u4e13\u5bb6\uff0c\u4e5f\u4e0d\u53ef\u80fd\u4e8b\u4e8b\u7686\u77e5\u3002\u65e0\u8bba\u4f60\u6709\u591a\u5c11\u7ecf\u9a8c\uff0c\u53ef\u80fd\u603b\u4f1a\u6709\u66f4\u591a\u7684\u4e1c\u897f\u9700\u8981\u4f60\u53bb\u5b66\u4e60\u3002\u6240\u4ee5\uff0c\u5728\u8fd9\u513f\u6211\u5217\u51fa\u4e86\u4e03\u4ef6\u5173\u4e8e Linux \u4f60\u53ef\u80fd\u4e0d\u77e5\u9053\u7684\u4e8b\u60c5\u3002
\n<\/p>\n
\u4f60\u53ef\u80fd\u5bf9 history <\/strong>\u547d\u4ee4\u975e\u5e38\u719f\u6089\uff0c\u5b83\u4f1a\u8bfb\u53d6 bash \u5386\u53f2\uff0c\u7136\u540e\u4ee5\u7f16\u53f7\u5217\u8868\u7684\u65b9\u5f0f\u8f93\u51fa\u5230\u6807\u51c6\u8f93\u51fa\uff08stdout<\/strong>\uff09\u3002\u7136\u800c\uff0c\u5982\u679c\u4f60\u5728 curl <\/strong>\u547d\u4ee4\u7684\u6d77\u6d0b\u91cc\u5bfb\u627e\u4e00\u4e2a\u7279\u5b9a\u7684\u94fe\u63a5\uff08URL\uff09\uff0c\u90a3\u4e48\u8fd9\u4e2a\u5217\u8868\u5e76\u4e0d\u603b\u662f\u90a3\u4e48\u5bb9\u6613\u9605\u8bfb\u7684\u3002<\/p>\n \u4f60\u8fd8\u53ef\u4ee5\u6709\u53e6\u4e00\u4e2a\u9009\u62e9\uff0cLinux \u6709\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u7684\u53cd\u5411\u641c\u7d22\u53ef\u4ee5\u5e2e\u52a9\u4f60\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u5feb\u6377\u952e ctrl+r<\/strong>\u542f\u52a8\u4ea4\u4e92\u6a21\u5f0f\uff0c\u7136\u540e\u8fdb\u5165\u4e00\u4e2a\u4ea4\u4e92\u63d0\u793a\u4e2d\uff0c\u5b83\u5c06\u4f1a\u6839\u636e\u4f60\u63d0\u4f9b\u7684\u5b57\u7b26\u4e32\u6765\u5411\u540e\u641c\u7d22 bash \u5386\u53f2\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u518d\u6b21\u6309\u4e0b ctrl+r<\/strong> \u5411\u540e\u641c\u7d22\u66f4\u8001\u7684\u547d\u4ee4\uff0c\u6216\u8005\u6309\u4e0b ctrl+s<\/strong> \u5411\u524d\u641c\u7d22\u3002<\/p>\n \u6ce8\u610f\uff0cctrl+s<\/strong> \u6709\u65f6\u4f1a\u4e0e XON\/XOFF \u6d41\u63a7\u5236\u51b2\u7a81\uff0c\u5373 XON\/XOFF \u6d41\u63a7\u5236\u4e5f\u4f1a\u4f7f\u7528\u8be5\u5feb\u6377\u952e\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c stty -ixon<\/strong> \u547d\u4ee4\u6765\u7981\u7528\u8be5\u5feb\u6377\u952e\u3002\u5728\u4f60\u7684\u4e2a\u4eba\u7535\u8111\u4e0a\uff0c\u8fd9\u901a\u5e38\u662f\u6709\u7528\u7684\uff0c\u4f46\u662f\u5728\u7981\u7528\u524d\uff0c\u786e\u4fdd\u4f60\u4e0d\u9700\u8981 XON\/XOFF \u3002<\/p>\n Cron \u4efb\u52a1\u5bf9\u4e8e\u4efb\u4f55\u6c34\u5e73\u7684\u7cfb\u7edf\u7ba1\u7406\u5458\uff0c\u65e0\u8bba\u662f\u6beb\u65e0\u7ecf\u9a8c\u7684\u521d\u5b66\u8005\uff0c\u8fd8\u662f\u7ecf\u9a8c\u4e30\u5bcc\u7684\u4e13\u5bb6\u6765\u8bf4\uff0c\u90fd\u662f\u975e\u5e38\u6709\u7528\u7684\u3002\u4f46\u662f\uff0c\u5982\u679c\u4f60\u9700\u8981\u5b89\u6392\u4e00\u4e2a\u4e00\u6b21\u6027\u7684\u4efb\u52a1\uff0c\u90a3\u4e48 at \u547d\u4ee4\u4e3a\u4f60\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5feb\u6377\u7684\u65b9\u5f0f\u6765\u521b\u5efa\u4efb\u52a1\uff0c\u4ece\u800c\u4f60\u4e0d\u9700\u8981\u63a5\u89e6 crontab \u3002<\/p>\n at \u547d\u4ee4\u7684\u8fd0\u884c\u65b9\u5f0f\u662f\u5728\u540e\u9762\u7d27\u8ddf\u7740\u4f60\u60f3\u8981\u8fd0\u884c\u4efb\u52a1\u7684\u8fd0\u884c\u65f6\u95f4\u3002\u65f6\u95f4\u662f\u7075\u6d3b\u7684\uff0c\u56e0\u4e3a\u5b83\u652f\u6301\u8bb8\u591a\u65f6\u95f4\u683c\u5f0f\u3002\u5305\u62ec\u4e0b\u9762\u8fd9\u4e9b\u4f8b\u5b50\uff1a<\/p>\n \u5f53\u4f60\u4ee5\u5e26\u53c2\u6570\u7684\u65b9\u5f0f\u8f93\u5165 at \u547d\u4ee4\u4ee5\u540e\uff0c\u5c06\u4f1a\u63d0\u793a\u4f60\u8be5\u547d\u4ee4\u5c06\u5728\u4f60\u7684 Linux \u7cfb\u7edf\u4e0a\u8fd0\u884c\u3002\u8fd9\u53ef\u80fd\u662f\u4e00\u4e2a\u5907\u4efd\u811a\u672c\uff0c\u4e00\u5957\u7ef4\u62a4\u4efb\u52a1\uff0c\u6216\u8005\u751a\u81f3\u662f\u4e00\u4e2a\u666e\u901a\u7684 bash \u547d\u4ee4\u3002\u5982\u679c\u8981\u7ed3\u675f\u4efb\u52a1\uff0c\u53ef\u4ee5\u6309 ctrl+d \u3002<\/p>\n \u53e6\u5916\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 atq \u547d\u4ee4\u67e5\u770b\u5f53\u524d\u7528\u6237\u7684\u6240\u6709\u4efb\u52a1\uff0c\u6216\u8005\u4f7f\u7528 sudo atq \u67e5\u770b\u6240\u6709\u7528\u6237\u7684\u4efb\u52a1\u3002\u5b83\u5c06\u4f1a\u5c55\u793a\u51fa\u6240\u6709\u6392\u5b9a\u597d\u7684\u4efb\u52a1\uff0c\u5e76\u4e14\u6bcf\u4e2a\u4efb\u52a1\u90fd\u4f34\u6709\u4e00\u4e2a ID \u3002\u5982\u679c\u4f60\u60f3\u53d6\u6d88\u4e00\u4e2a\u6392\u5b9a\u597d\u7684\u4efb\u52a1\uff0c\u53ef\u4ee5\u4f7f\u7528 atrm \u547d\u4ee4\uff0c\u5e76\u4e14\u4ee5\u4efb\u52a1 ID \u4f5c\u4e3a\u53c2\u6570\u3002<\/p>\n \u8bb0\u4f4f\u547d\u4ee4\u7684\u540d\u5b57\u975e\u5e38\u56f0\u96be\uff0c\u7279\u522b\u662f\u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4\u3002\u5e78\u8fd0\u7684\u662f\uff0cLinux \u9644\u5e26\u4e86\u4e00\u4e2a\u901a\u8fc7\u540d\u5b57\u548c\u63cf\u8ff0\u6765\u641c\u7d22 man \u9875\u9762\u7684\u5de5\u5177\u3002<\/p>\n \u4e0b\u6b21\uff0c\u5982\u679c\u4f60\u6ca1\u6709\u8bb0\u4f4f\u4f60\u60f3\u8981\u4f7f\u7528\u7684\u5de5\u5177\u7684\u540d\u79f0\uff0c\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528 apropos \u547d\u4ee4\u52a0\u4e0a\u4f60\u60f3\u8981\u5e72\u7684\u4e8b\u60c5\u7684\u63cf\u8ff0\u3002\u6bd4\u5982\uff0capropos build filesystem \u5c06\u4f1a\u8fd4\u56de\u4e00\u7cfb\u5217\u540d\u5b57\u548c\u63cf\u8ff0\u5305\u62ec\u4e86 \u201cbuild\u201d \u548c \u201cfilesystem\u201d \u5355\u8bcd\u7684\u5de5\u5177\u3002<\/p>\n apropos \u547d\u4ee4\u63a5\u53d7\u4e00\u4e2a\u6216\u591a\u4e2a\u5b57\u7b26\u4e32\u4f5c\u4e3a\u53c2\u6570\uff0c\u4f46\u540c\u65f6\u5b83\u4e5f\u6709\u5176\u4ed6\u53c2\u6570\uff0c\u6bd4\u5982\u4f60\u53ef\u4ee5\u4f7f\u7528 -r \u53c2\u6570\uff0c\u4ece\u800c\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u641c\u7d22\u3002<\/p>\n \u5982\u679c\u4f60\u66fe\u8fdb\u884c\u8fc7\u8f6f\u4ef6\u5f00\u53d1\uff0c\u4f60\u5c31\u4f1a\u660e\u767d\u8de8\u9879\u76ee\u7ba1\u7406\u4e0d\u540c\u7248\u672c\u7684\u8bed\u8a00\u7684\u652f\u6301\u7684\u91cd\u8981\u6027\u3002\u8bb8\u591a Linux \u53d1\u884c\u7248\u90fd\u6709\u5de5\u5177\u53ef\u4ee5\u6765\u5904\u7406\u4e0d\u540c\u7684\u5185\u5efa\u7248\u672c\u3002<\/p>\n \u53ef\u6267\u884c\u6587\u4ef6\u6bd4\u5982 java \u5f80\u5f80\u7b26\u53f7\u94fe\u63a5\u5230\u76ee\u5f55 \/etc\/alternatives \u4e0b\u3002\u53cd\u8fc7\u6765\uff0c\u8be5\u76ee\u5f55\u4f1a\u5c06\u7b26\u53f7\u94fe\u63a5\u5b58\u50a8\u4e3a\u4e8c\u8fdb\u5236\u6587\u4ef6\u5e76\u63d0\u4f9b\u4e00\u4e2a\u7ba1\u7406\u8fd9\u4e9b\u94fe\u63a5\u7684\u63a5\u53e3\u3002Java \u53ef\u80fd\u662f\u66ff\u4ee3\u7cfb\u7edf\u6700\u5e38\u7ba1\u7406\u7684\u8bed\u8a00\uff0c\u4f46\u662f\uff0c\u7ecf\u8fc7\u4e00\u4e9b\u914d\u7f6e\uff0c\u5b83\u4e5f\u53ef\u4ee5\u4f5c\u4e3a\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u66ff\u4ee3\u54c1\uff0c\u6bd4\u5982 NVM \u548c RVM \uff08NVM \u548c RVM \u5206\u522b\u662f NodeJS \u548c Ruby \u7684\u7248\u672c\u7ba1\u7406\u5668\uff09\u3002<\/p>\n \u5728\u57fa\u4e8e Debian \u7684\u7cfb\u7edf\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 update-alternatives \u547d\u4ee4\u521b\u5efa\u548c\u7ba1\u7406\u8fd9\u4e9b\u94fe\u63a5\u3002\u5728 CentOS \u4e2d\uff0c\u8fd9\u4e2a\u5de5\u5177\u5c31\u53eb\u505a alternatives \u3002\u901a\u8fc7\u66f4\u6539\u4f60\u7684 alternatives \u6587\u4ef6\u4e2d\u7684\u94fe\u63a5\uff0c\u4f60\u4fbf\u53ef\u4ee5\u5b89\u88c5\u4e00\u4e2a\u8bed\u8a00\u7684\u591a\u4e2a\u7248\u672c\uff0c\u5e76\u4e14\u5728\u4e0d\u540c\u7684\u60c5\u51b5\u4e0b\u4f7f\u7528\u4e0d\u540c\u7684\u4e8c\u8fdb\u5236\u3002\u8fd9\u4e2a\u66ff\u4ee3\u7cfb\u7edf\u4e5f\u63d0\u4f9b\u4e86\u5bf9\u4efb\u4f55\u4f60\u53ef\u80fd\u5728\u547d\u4ee4\u884c\u8fd0\u884c\u7684\u7a0b\u5e8f\u7684\u652f\u6301\u3002<\/p>\n \u6211\u4eec\u5927\u591a\u6570\u65f6\u5019\u603b\u662f\u4f7f\u7528 rm \u547d\u4ee4\u6765\u5220\u9664\u6587\u4ef6\u3002\u4f46\u662f\u6587\u4ef6\u53bb\u54ea\u513f\u4e86\u5462\uff1f\u771f\u76f8\u662f rm \u547d\u4ee4\u6240\u505a\u7684\u4e8b\u60c5\u5e76\u4e0d\u662f\u50cf\u4f60\u6240\u60f3\u50cf\u7684\u90a3\u6837\uff0c\u5b83\u4ec5\u4ec5\u5220\u9664\u4e86\u6587\u4ef6\u7cfb\u7edf\u548c\u786c\u76d8\u4e0a\u7684\u6570\u636e\u7684\u786c\u94fe\u63a5\u3002\u786c\u76d8\u4e0a\u7684\u6570\u636e\u4f9d\u65e7\u5b58\u5728\uff0c\u76f4\u5230\u88ab\u53e6\u4e00\u4e2a\u5e94\u7528\u91cd\u5199\u8986\u76d6\u3002\u5bf9\u4e8e\u975e\u5e38\u654f\u611f\u7684\u6570\u636e\u6765\u8bf4\uff0c\u8fd9\u4f1a\u5e26\u6765\u4e00\u4e2a\u5f88\u5927\u7684\u5b89\u5168\u9690\u60a3\u3002<\/p>\n shred \u547d\u4ee4\u662f rm \u547d\u4ee4\u7684\u5347\u7ea7\u7248\u3002\u5f53\u4f60\u4f7f\u7528 shred \u547d\u4ee4\u5220\u9664\u4e00\u4e2a\u6587\u4ef6\u4e4b\u540e\uff0c\u6587\u4ef6\u4e2d\u7684\u6570\u636e\u4f1a\u88ab\u591a\u6b21\u968f\u673a\u8986\u5199\u3002\u751a\u81f3\u6709\u4e00\u4e2a\u9009\u9879\u53ef\u4ee5\u5728\u968f\u673a\u8986\u5199\u4e4b\u540e\u5bf9\u6240\u6709\u7684\u6570\u636e\u8fdb\u884c\u6e05\u96f6\u3002<\/p>\n \u5982\u679c\u4f60\u60f3\u5b89\u5168\u7684\u5220\u9664\u4e00\u4e2a\u6587\u4ef6\u5e76\u4e14\u4ee5\u96f6\u8986\u76d6\uff0c\u90a3\u4e48\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\uff1a<\/p>\n \u540c\u65f6\uff0c\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528 -n \u9009\u9879\u548c\u4e00\u4e2a\u6570\u5b57\u4f5c\u4e3a\u53c2\u6570\uff0c\u4ece\u800c\u6307\u5b9a\u5728\u968f\u673a\u8986\u76d6\u6570\u636e\u7684\u65f6\u5019\u8fed\u4ee3\u591a\u5c11\u6b21\u3002<\/p>\n \u6709\u591a\u5c11\u6b21\uff0c\u4f60\u8f93\u5165\u4e00\u4e2a\u6587\u4ef6\u7684\u7edd\u5bf9\u8def\u5f84\uff0c\u7136\u800c\u5374\u770b\u5230\u201c\u6ca1\u6709\u8be5\u6587\u4ef6\u6216\u76ee\u5f55\u201d\u7684\u6d88\u606f\u3002\u4efb\u4f55\u4eba\u90fd\u4f1a\u660e\u767d\u8f93\u5165\u4e00\u4e2a\u5f88\u957f\u7684\u5b57\u7b26\u4e32\u7684\u75db\u82e6\u3002\u5e78\u8fd0\u7684\u662f\uff0c\u6709\u4e00\u4e2a\u5f88\u7b80\u5355\u7684\u89e3\u51b3\u529e\u6cd5\u3002<\/p>\n \u5185\u5efa\u7684 shopt \u547d\u4ee4\u5141\u8bb8\u4f60\u8bbe\u7f6e\u4e0d\u540c\u7684\u9009\u9879\u6765\u6539\u53d8 shell \u7684\u884c\u4e3a\u3002\u8bbe\u7f6e cdspell \u9009\u9879\u662f\u907f\u514d\u8f93\u5165\u6587\u4ef6\u8def\u5f84\u65f6\u4e00\u4e2a\u5b57\u6bcd\u51fa\u9519\u7684\u5934\u75db\u7684\u4e00\u4e2a\u7b80\u5355\u65b9\u5f0f\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c shopt -s cdspell \u547d\u4ee4\u6765\u542f\u7528\u8be5\u9009\u9879\u3002\u542f\u7528\u8be5\u9009\u9879\u540e\uff0c\u5f53\u4f60\u60f3\u8981\u5207\u6362\u76ee\u5f55\u65f6\uff0c\u4f1a\u81ea\u52a8\u66f4\u6b63\u4e3a\u6700\u5339\u914d\u7684\u76ee\u5f55\u3002<\/p>\n Shell \u9009\u9879\u662f\u8282\u7701\u65f6\u95f4\u7684\u4e00\u4e2a\u597d\u65b9\u6cd5\uff08\u66f4\u4e0d\u7528\u8bf4\u51cf\u5c11\u9ebb\u70e6\uff09\uff0c\u6b64\u5916\u8fd8\u6709\u8bb8\u8bb8\u591a\u591a\u7684\u5176\u4ed6\u9009\u9879\u3002\u5982\u679c\u60f3\u67e5\u770b\u4f60\u7684\u7cfb\u7edf\u4e2d\u6240\u6709\u9009\u9879\u7684\u5b8c\u6574\u5217\u8868\uff0c\u53ef\u4ee5\u8fd0\u884c\u4e0d\u5e26\u53c2\u6570\u7684 shopt \u547d\u4ee4\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8fd9\u662f bash \u7684\u7279\u6027\uff0c\u5982\u679c\u4f60\u8fd0\u884c zsh \u6216\u8005\u5176\u4ed6\u53ef\u4f9b\u9009\u62e9\u7684 shell\uff0c\u53ef\u80fd\u65e0\u6cd5\u4f7f\u7528\u3002<\/p>\n \u5982\u679c\u4f60\u66fe\u7ecf\u914d\u7f6e\u8fc7\u4e00\u4e2a\u6bd4\u8f83\u590d\u6742\u7684\u7cfb\u7edf\uff0c\u90a3\u4e48\u4f60\u53ef\u80fd\u4f1a\u53d1\u73b0\u4f60\u9700\u8981\u9891\u7e41\u7684\u66f4\u6362\u76ee\u5f55\uff0c\u4ece\u800c\u5f88\u96be\u8ddf\u8e2a\u4f60\u6240\u5728\u7684\u4f4d\u7f6e\u3002\u5982\u679c\u5728\u8fd0\u884c\u5b8c\u4e00\u4e2a\u547d\u4ee4\u540e\u81ea\u52a8\u8fd4\u56de\u5230\u5f53\u524d\u4f4d\u7f6e\uff0c\u4e0d\u662f\u5f88\u597d\u5417\uff1f<\/p>\n Linux \u7cfb\u7edf\u5b9e\u9645\u4e0a\u63d0\u4f9b\u4e86\u4e00\u4e2a\u89e3\u51b3\u8be5\u95ee\u9898\u7684\u65b9\u6cd5\uff0c\u5e76\u4e14\u975e\u5e38\u7b80\u5355\u3002\u5982\u679c\u4f60\u60f3\u901a\u8fc7 cd \u547d\u4ee4\u8fdb\u5165\u53e6\u4e00\u4e2a\u76ee\u5f55\u5b8c\u6210\u4e00\u4e9b\u4efb\u52a1\uff0c\u7136\u540e\u518d\u8fd4\u56de\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\uff0c\u90a3\u4e48\u4f60\u53ef\u4ee5\u5c06\u547d\u4ee4\u7f6e\u4e8e\u62ec\u53f7\u4e2d\u3002\u4f60\u53ef\u4ee5\u5728\u4f60\u7684 Linux \u7cfb\u7edf\u4e0a\u5c1d\u8bd5\u4e0b\u9762\u8fd9\u4e2a\u547d\u4ee4\u3002\u8bb0\u4f4f\u4f60\u5f53\u524d\u7684\u5de5\u4f5c\u76ee\u5f55\uff0c\u7136\u540e\u8fd0\u884c\uff1a<\/p>\n \u8be5\u547d\u4ee4\u4f1a\u8f93\u51fa \/etc \u76ee\u5f55\u7684\u5185\u5bb9\u3002\u73b0\u5728\uff0c\u68c0\u67e5\u4f60\u7684\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u3002\u5b83\u548c\u6267\u884c\u8be5\u547d\u4ee4\u524d\u7684\u76ee\u5f55\u4e00\u6837\uff0c\u800c\u4e0d\u662f \/etc \u76ee\u5f55\u3002<\/p>\n \u5b83\u662f\u5982\u4f55\u5de5\u4f5c\u7684\u5462\uff1f\u8fd0\u884c\u4e00\u4e2a\u62ec\u53f7\u4e2d\u7684\u547d\u4ee4\u4f1a\u521b\u5efa\u4e00\u4e2a\u5b50 shell \u6216\u4e00\u4e2a\u5f53\u524d shell \u8fdb\u7a0b\u7684\u590d\u523b\u526f\u672c\u3002\u8be5\u5b50 shell \u53ef\u4ee5\u8bbf\u95ee\u6240\u6709\u7684\u7236\u53d8\u91cf\uff0c\u53cd\u4e4b\u5219\u4e0d\u884c\u3002\u6240\u4ee5\u8bf7\u8bb0\u4f4f\uff0c\u4f60\u662f\u5728\u8fd0\u884c\u4e00\u4e2a\u975e\u5e38\u590d\u6742\u7684\u5355\u884c\u547d\u4ee4\u3002<\/p>\n \u5728\u5e76\u884c\u5904\u7406\u4e2d\u7ecf\u5e38\u4f7f\u7528\u5b50 shell \uff0c\u4f46\u662f\u5728\u547d\u4ee4\u884c\u4e2d\uff0c\u5b83\u4e5f\u80fd\u4e3a\u4f60\u5e26\u6765\u540c\u6837\u7684\u529b\u91cf\uff0c\u4ece\u800c\u4f7f\u4f60\u5728\u6d4f\u89c8\u6587\u4ef6\u7cfb\u7edf\u65f6\u66f4\u52a0\u5bb9\u6613\u3002<\/p>\n via: http:\/\/opensourceforu.com\/2017\/09\/top-7-things-linux-may-not-known-far\/<\/a><\/p>\n \u4f5c\u8005\uff1aPHIL ZONA<\/a> \u8bd1\u8005\uff1aucasFL<\/a> \u6821\u5bf9\uff1awxy<\/a><\/p>\n \u672c\u6587\u7531 LCTT<\/a> \u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd<\/a> \u8363\u8a89\u63a8\u51fa<\/p>\n \u539f\u6587\u6765\u81ea\uff1ahttps:\/\/linux.cn\/article-8934-1.html<\/a><\/p>\nat 12:00 PM September 30 2017\r\nat now + 1 hour\r\nat 9:00 AM tomorrow<\/pre>\n
shred -u -z [file name]<\/pre>\n
(cd \/etc && ls -a)<\/pre>\n
\n\n