{"id":136,"date":"2025-08-16T22:32:10","date_gmt":"2025-08-16T14:32:10","guid":{"rendered":"https:\/\/www.mooloco.com\/?p=136"},"modified":"2025-08-16T22:32:13","modified_gmt":"2025-08-16T14:32:13","slug":"linux%e7%b3%bb%e7%bb%9f%e5%88%9d%e5%a7%8b%e5%8c%96","status":"publish","type":"post","link":"https:\/\/www.mooloco.com\/?p=136","title":{"rendered":"Linux\u7cfb\u7edf\u521d\u59cb\u5316"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_75 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.mooloco.com\/?p=136\/#%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86\" >\u7cfb\u7edf\u7ba1\u7406<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.mooloco.com\/?p=136\/#Linux%E5%BC%80%E6%9C%BA%E8%BF%87%E7%A8%8B\" >Linux\u5f00\u673a\u8fc7\u7a0b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.mooloco.com\/?p=136\/#%E8%BF%9B%E7%A8%8B%E7%AE%A1%E7%90%86\" >\u8fdb\u7a0b\u7ba1\u7406<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.mooloco.com\/?p=136\/#%E8%AE%A1%E5%88%92%E4%BB%BB%E5%8A%A1%E7%AE%A1%E7%90%86\" >\u8ba1\u5212\u4efb\u52a1\u7ba1\u7406<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.mooloco.com\/?p=136\/#%E5%85%B6%E4%BB%96%E5%91%BD%E4%BB%A4\" >\u5176\u4ed6\u547d\u4ee4<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.mooloco.com\/?p=136\/#%E7%BB%93%E8%AF%AD\" >\u7ed3\u8bed<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86\"><\/span>\u7cfb\u7edf\u7ba1\u7406<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\u81ea\u68c0\u7684\u7ed3\u679c\u662f\u627e\u5230\u7b2c\u4e00\u5757\u80fd\u591f\u5f15\u5bfc\u7684\u8bbe\u5907<br>\u627e\u5230\u8fd9\u4e2a\u8bbe\u5907\u4e4b\u540e\u5b83\u5c31\u4f1a\u53bb\u52a0\u8f7d\u8fd9\u5757\u8bbe\u5907\u7684MBR<br>\u8fd9\u4e2a\u6247\u533a\u91cc\u9762\u7684GRUB\uff08\u5f15\u5bfc\u7a0b\u5e8f\u5458\uff09<br>\u8fd9\u4e2a\u5f15\u5bfc\u7a0b\u5e8f\u662f\u653e\u7f6e\u5728\u8fd9\u4e2a\u8bbe\u5907\u7684\u7b2c\u4e00\u4e2a\u6247\u533a\u53ebMBR\uff0c\u96be\u4e48\u4f1a\u6709GRUB\u5f15\u5bfc\u7a0b\u5e8f\u3001\u8fd8\u6709\u5206\u533a\u8868<br>\uff0c\u90a3\u4e48\u5f53BIOS\u627e\u5230\u90a3\u4e2a\u80fd\u591f\u5f15\u5bfc\u7684\u8bbe\u5907\u4e4b\u540e\uff0c\u628a\u653e\u5728MBR\u8fd9\u4e2a\u6247\u533a\u91cc\u8fb9\u7684\u542f\u52a8\u5f15\u5bfc\u7a0b\u5e8f\u8fd0\u884c\u8d77\u6765\u8fd0\u884c\u8d77\u6765\u4e4b\u540e\uff0c\u5b83\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\uff0c\u4e00\u822c\u5728linux\u4e0b\u9762\uff0c\u8fd9\u4e2a\u542f\u52a8\u5f15\u5bfc\u7a0b\u5e8f\u53eb\u505aGRUB \u00a0 \uff0cGRUB\u5f15\u5bfc\u7a0b\u5e8f\uff0c\u5f15\u5bfc\u4e4b\u540e\uff0c\u4ed6\u6709\u4e2a\u914d\u7f6e\u6587\u4ef6\uff0c<br>\u8fd9\u4e2aGRUB\u4f1a\u53bb\u8bfb\u53d6\u5b83\u7684\u914d\u7f6e\u6587\u4ef6\u3002<br>\u90a3\u4e48grub\u5f15\u5bfc\u7a0b\u5e8f\u8bfb\u53d6grub.conf\uff08grub.cnf\uff09\u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6<br>\u91cc\u9762\u5c31\u6709\u5185\u6838 \u8bbe\u7f6e\u5c31\u544a\u8bc9\u8fd9\u4e2agrub \u8fd9\u4e2a\u5185\u6838\u5728\u4ec0\u4e48\u5730\u65b9\u53bb\u52a0\u8f7d<br>\u9664\u4e86\u52a0\u8f7d\u5185\u6838 \u8fd8\u8981\u52a0\u8f7d\u4e00\u4e2a\u955c\u50cf\u6587\u4ef6\u7cfb\u7edf\uff0c\u8fd9\u4e48\u4e00\u4e2a\u6587\u4ef6 \u628a\u5185\u6838\u548c\u955c\u50cf\u6587\u4ef6\u7cfb\u7edf\u90fd\u52a0\u8f7d\u5230\u5185\u5b58\u91cc\u9762\u8fd0\u884c\u8d77\u6765\uff0c<br>\u7136\u540e\u4e00\u65e6\u5185\u6838\u52a0\u8f7d\u5230\u5185\u5b58\u91cc\u9762\u8fd0\u884c\u4e4b\u540e\uff0c\u5b83\u5c31\u53c8\u8fdb\u884c\u4e00\u6b21\u786c\u4ef6\u81ea\u68c0\uff0c\u518d\u68c0\u67e5\u786c\u4ef6\uff0c\u521a\u624d\u6211\u4eec\u8bf4BIOS\u8fdb\u884c\u4e00\u6b21\u57fa\u672c\u7684\u786c\u4ef6\u7684\u68c0\u6d4b\uff0c\u52a0\u8f7d\u5185\u6838\u4e4b\u540e\u5c31\u5168\u9762\u7684\u786c\u4ef6\u68c0\u6d4b\uff0c\u52a0\u8f7d\u4e4b\u540e\uff0c\u90a3\u4e48linux\u5230\u8fd9\u91cc\u771f\u4e2a\u5173\u4e8e\u5e95\u5c42\u7684\u4e1c\u897f\u5c31\u52a0\u8f7d\u5b8c\u6bd5\u4e86<br>\u6700\u540e\u5185\u6838init \u8fdb\u7a0b\u8fd0\u884c\u8d77\u6765\uff0c<br>\u90a3\u4e48\u8fd9\u4e2ainit\u8fdb\u7a0b\u5462\u8d1f\u8d23\u8fdb\u884c\u6574\u4e2a\u73af\u5883\u7684\u521d\u59cb\u5316\uff0c\u8fd9\u4e2ainit\u8fdb\u7a0b\u662f\u6240\u6709\u8fdb\u7a0b\u7684\u7236\u8fdb\u7a0b\uff0cPID\u53f7\u4e3a1 \u00a0<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Linux%E5%BC%80%E6%9C%BA%E8%BF%87%E7%A8%8B\"><\/span>Linux\u5f00\u673a\u8fc7\u7a0b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">1.\u5f00\u673a\u81ea\u68c0<br>\u68c0\u6d4b\u5230\u7b2c\u4e00\u4e2a\u80fd\u591f\u542f\u52a8\u7684\u8bbe\u5907\uff0c\u5982\u786c\u76d8\u6216\u5149\u9a71\u3001U\u76d8\u3002<br>2.MBR \u5f15\u5bfc<br>\u4ece\u786c\u76d8\u7684 MBR \u5f15\u5bfc\u7a0b\u5e8f\u542f\u52a8\uff0c\u8fd0\u884c GRUB \u5f15\u5bfc\u52a0\u8f7d\u5668\u3002<br>3.GRUB \u5f15\u5bfc\u83dc\u5355<br>GRUB \u5f15\u5bfc\u7a0b\u5e8f\u8bfb\u53d6\u914d\u7f6e\u6587\u4ef6\uff0c\u52a0\u8f7d\u5e76\u542f\u52a8\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u3002<br>4.\u52a0\u8f7d Linux \u5185\u6838<br>\u5c06\u5185\u6838\u6587\u4ef6\u548c\u955c\u50cf\u6587\u4ef6\u52a0\u8f7d\u5230\u5185\u5b58\u3002<br>5.init \u8fdb\u7a0b\u521d\u59cb\u5316<br>\u5185\u6838\u52a0\u8f7d\u5e76\u542f\u52a8 <code>init<\/code> \u8fdb\u7a0b\uff0c\u5b8c\u6210\u7cfb\u7edf\u7684\u521d\u59cb\u5316\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2.\u8fd0\u884c\u7ea7\u522b<br><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u8fd0\u884c\u7ea7\u522b\/Target<\/th><th>\u540d\u79f0<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td>0<\/td><td>poweroff.target<\/td><td>\u5173\u673a<\/td><\/tr><tr><td>1<\/td><td>rescue.target<\/td><td>\u5355\u7528\u6237\u6a21\u5f0f<\/td><\/tr><tr><td>2 \/ 3 \/ 4<\/td><td>multi-user.target<\/td><td>\u591a\u7528\u6237\u6a21\u5f0f<\/td><\/tr><tr><td>5<\/td><td>graphical.target<\/td><td>\u56fe\u5f62\u5316\u9875\u9762<\/td><\/tr><tr><td>6<\/td><td>reboot.target<\/td><td>\u91cd\u542f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n    init   n # \u5207\u6362\u8fd0\u884c\u7ea7\u522b\n        \u793a\u4f8b\n            init 1    #  \u5207\u6362\u5355\u7528\u6237\u6a21\u5f0f\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n3.systemctl     \u670d\u52a1\u7ba1\u7406\n    \u53c2\u6570:\n        get-default     \u67e5\u770b\u9ed8\u8ba4\u76ee\u6807\n        set-default     \u8bbe\u7f6e\u9ed8\u8ba4\u76ee\u6807\n        isolate         \u5207\u6362\u76ee\u6807\n        enable          \u542f\u7528\u670d\u52a1\u5f00\u673a\u542f\u52a8\n        is-enabled      \u67e5\u770b\u662f\u5426\u5f00\u673a\u542f\u52a8\n        disable         \u5173\u95ed\u670d\u52a1\u5f00\u673a\u542f\u52a8\n        list-unit-files \u5217\u51fa\u6240\u6709\u670d\u52a1\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n4.hostnamectl   \u4fee\u6539\u4e3b\u673a\u540d\n    hostnamectl set-hostname newname    \u6c38\u4e45\u4fee\u6539\u4e3b\u673a\u540d\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n5.localectl set-locale  \u8bbe\u7f6e\u7cfb\u7edf\u8bed\u8a00\n    localectl set-locale LANG=zh_CN.utf8    \u8bbe\u7f6e\u7cfb\u7edf\u8bed\u8a00\u4e3a\u4e2d\u6587\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%BF%9B%E7%A8%8B%E7%AE%A1%E7%90%86\"><\/span>\u8fdb\u7a0b\u7ba1\u7406<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u5e8f\u53f7<\/th><th>\u547d\u4ee4 \/ \u64cd\u4f5c<\/th><th>\u529f\u80fd\u8bf4\u660e<\/th><th>\u5e38\u7528\u53c2\u6570 \/ \u5feb\u6377\u952e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td>1<\/td><td><code>ps<\/code><\/td><td>\u67e5\u770b\u8fdb\u7a0b\u4fe1\u606f<\/td><td><code>-aux<\/code> \u663e\u793a\u6240\u6709\u8fdb\u7a0b<code>-ef<\/code> \u6807\u51c6\u683c\u5f0f\u663e\u793a<code>grep<\/code> \u8fc7\u6ee4\u8fdb\u7a0b<\/td><td><code>ps -aux<\/code><code>ps -ef<\/code><code>ps -aux | grep nginx<\/code><\/td><\/tr><tr><td><\/td><td><strong>\u8fdb\u7a0b\u72b6\u6001<\/strong><\/td><td><code>R<\/code> \u6b63\u5728\u8fd0\u884c<code>T<\/code> \u505c\u6b62<code>S<\/code> \u7761\u7720<code>D<\/code> \u7cfb\u7edf\u5b88\u62a4\u8fdb\u7a0b<code>Z<\/code> \u50f5\u5c38\u8fdb\u7a0b<\/td><td><\/td><td><\/td><\/tr><tr><td>2<\/td><td><code>top<\/code><\/td><td>\u5b9e\u65f6\u663e\u793a\u8fdb\u7a0b\u548c\u8d44\u6e90\u5360\u7528<\/td><td><code>P<\/code> \u6309 CPU \u6392\u5e8f<code>M<\/code> \u6309\u5185\u5b58\u6392\u5e8f<code>T<\/code> \u6309\u8fd0\u884c\u65f6\u95f4\u6392\u5e8f<code>q<\/code> \u9000\u51fa<\/td><td><code>top<\/code><\/td><\/tr><tr><td>3<\/td><td><code>pgrep<\/code><\/td><td>\u6309\u6761\u4ef6\u67e5\u8be2\u8fdb\u7a0b<\/td><td><code>-l<\/code> \u663e\u793a\u8fdb\u7a0b\u540d\u548c PID<code>-U<\/code> \u6307\u5b9a\u7528\u6237<code>-t<\/code> \u6307\u5b9a\u7ec8\u7aef<\/td><td><code>pgrep -l -U teacher -t tty1<\/code><\/td><\/tr><tr><td>4<\/td><td><code>pstree<\/code><\/td><td>\u6811\u5f62\u7ed3\u6784\u663e\u793a\u8fdb\u7a0b<\/td><td><code>-p<\/code> \u663e\u793a PID<code>-u<\/code> \u663e\u793a\u7528\u6237\u540d<code>-a<\/code> \u663e\u793a\u5b8c\u6574\u547d\u4ee4<\/td><td><code>pstree -p<\/code><\/td><\/tr><tr><td>5<\/td><td><code>&amp;<\/code><\/td><td>\u542f\u52a8\u540e\u53f0\u8fdb\u7a0b<\/td><td>\u65e0<\/td><td><code>cp \/centos7.iso &amp;<\/code><\/td><\/tr><tr><td>6<\/td><td><code>Ctrl+Z<\/code><\/td><td>\u6302\u8d77\u5f53\u524d\u8fdb\u7a0b\uff08\u540e\u53f0\u505c\u6b62\uff09<\/td><td>\u65e0<\/td><td>\u5728\u8fd0\u884c\u547d\u4ee4\u65f6\u6309 <code>Ctrl+Z<\/code><\/td><\/tr><tr><td>7<\/td><td><code>jobs<\/code><\/td><td>\u67e5\u770b\u5f53\u524d\u4f1a\u8bdd\u7684\u540e\u53f0\u4efb\u52a1<\/td><td><code>-l<\/code> \u663e\u793a\u4efb\u52a1 ID \u548c PID<\/td><td><code>jobs -l<\/code><\/td><\/tr><tr><td>8<\/td><td><code>fg<\/code> \/ <code>bg<\/code><\/td><td><code>fg<\/code> \u5c06\u540e\u53f0\u4efb\u52a1\u8f6c\u524d\u53f0<code>bg<\/code> \u540e\u53f0\u7ee7\u7eed\u8fd0\u884c\u4efb\u52a1<\/td><td>\u65e0<\/td><td><code>fg 1<\/code><\/td><\/tr><tr><td>9<\/td><td><code>Ctrl+C<\/code><\/td><td>\u4e2d\u65ad\u5f53\u524d\u8fdb\u7a0b<\/td><td>\u65e0<\/td><td>\u8fd0\u884c\u65f6\u6309 <code>Ctrl+C<\/code><\/td><\/tr><tr><td><\/td><td><code>kill<\/code><\/td><td>\u6309 PID \u7ec8\u6b62\u8fdb\u7a0b<\/td><td><code>-9<\/code> \u5f3a\u5236\u7ec8\u6b62<\/td><td><code>kill -9 1234<\/code><\/td><\/tr><tr><td>10<\/td><td><code>killall<\/code><\/td><td>\u6309\u8fdb\u7a0b\u540d\u7ec8\u6b62\u8fdb\u7a0b<\/td><td>\u65e0<\/td><td><code>killall vim<\/code><\/td><\/tr><tr><td>11<\/td><td><code>pkill<\/code><\/td><td>\u6309\u5c5e\u6027\u7ec8\u6b62\u8fdb\u7a0b<\/td><td><\/td><td><code>pkill -u root<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%AE%A1%E5%88%92%E4%BB%BB%E5%8A%A1%E7%AE%A1%E7%90%86\"><\/span>\u8ba1\u5212\u4efb\u52a1\u7ba1\u7406<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u547d\u4ee4<\/th><th>\u7c7b\u578b<\/th><th>\u7528\u9014<\/th><th>\u547d\u4ee4\u683c\u5f0f \/ \u8bed\u6cd5<\/th><th>\u5e38\u7528\u53c2\u6570<\/th><th>\u8bf4\u660e \/ \u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>at<\/code><\/td><td>\u4e00\u6b21\u6027\u4efb\u52a1<\/td><td>\u5728\u6307\u5b9a\u65f6\u95f4\u6267\u884c\u4e00\u6b21\u4efb\u52a1<\/td><td><code>at [HH:MM] [yyyy-mm-dd]<\/code><code>at&gt; [\u8981\u6267\u884c\u7684\u547d\u4ee4]<\/code><\/td><td><code>atq<\/code> \u5217\u51fa\u5f85\u6267\u884c\u4efb\u52a1<code>atrm [\u4efb\u52a1\u7f16\u53f7]<\/code> \u5220\u9664\u6307\u5b9a\u4efb\u52a1<\/td><td>\u793a\u4f8b\uff1a<code>at 14:30 2025-08-17<\/code><\/td><\/tr><tr><td><code>crontab<\/code><\/td><td>\u5468\u671f\u6027\u4efb\u52a1<\/td><td>\u6309\u56fa\u5b9a\u65f6\u95f4\u5468\u671f\u81ea\u52a8\u6267\u884c\u4efb\u52a1<\/td><td><code>* * * * * \u547d\u4ee4<\/code>\uff08\u5206 \u65f6 \u65e5 \u6708 \u5468\uff09<\/td><td><code>-e<\/code> \u7f16\u8f91\u5f53\u524d\u7528\u6237\u4efb\u52a1<code>-l<\/code> \u5217\u51fa\u5f53\u524d\u7528\u6237\u4efb\u52a1<code>-r<\/code> \u5220\u9664\u5f53\u524d\u7528\u6237\u6240\u6709\u4efb\u52a1<\/td><td>\u65f6\u95f4\u5b57\u6bb5\u89c4\u5219\uff1a<code>-<\/code> \u8fde\u7eed\u8303\u56f4\uff0c\u5982 <code>1-4<\/code><code>,<\/code> \u4e0d\u8fde\u7eed\u8303\u56f4\uff0c\u5982 <code>3,4,6,8<\/code><code>\/<\/code> \u95f4\u9694\u9891\u7387\uff0c\u5982 <code>*\/3<\/code> \u6bcf 3 \u5929\u4e00\u6b21\u4fdd\u5b58\u9000\u51fa\uff1a<code>Ctrl+D<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%85%B6%E4%BB%96%E5%91%BD%E4%BB%A4\"><\/span>\u5176\u4ed6\u547d\u4ee4<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u547d\u4ee4<\/th><th>\u529f\u80fd<\/th><th>\u5e38\u7528\u53c2\u6570 \/ \u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>date<\/code><\/td><td>\u663e\u793a\u6216\u8bbe\u7f6e\u5f53\u524d\u65f6\u95f4<\/td><td><code>+%Y-%m-%d<\/code> \u683c\u5f0f\u5316\u8f93\u51fa<code>-s<\/code> \u8bbe\u7f6e\u65f6\u95f4<\/td><td><code>date +%Y-%m-%d -s \"2025-08-14\"<\/code><\/td><\/tr><tr><td><code>cal<\/code><\/td><td>\u67e5\u770b\u65e5\u5386<\/td><td><code>[\u6708] [\u5e74]<\/code> \u67e5\u770b\u6307\u5b9a\u6708<code>-y \u5e74\u4efd<\/code> \u67e5\u770b\u6574\u5e74\u65e5\u5386<\/td><td><code>cal 12 2025<\/code><code>cal -y 2025<\/code><\/td><\/tr><tr><td><code>history<\/code><\/td><td>\u67e5\u770b\u5386\u53f2\u64cd\u4f5c\u8bb0\u5f55<\/td><td>\u53ef\u4e0e <code>grep<\/code> \u7ed3\u5408\u641c\u7d22<\/td><td><code>history | grep \"mkdir\"<\/code><\/td><\/tr><tr><td><code>!n<\/code><\/td><td>\u6267\u884c\u5386\u53f2\u8bb0\u5f55\u4e2d\u7f16\u53f7\u4e3a n \u7684\u547d\u4ee4<\/td><td>n \u4e3a <code>history<\/code> \u4e2d\u7684\u7f16\u53f7<\/td><td><code>!2<\/code><\/td><\/tr><tr><td><code>scp<\/code><\/td><td>\u672c\u5730\u4e0e\u8fdc\u7a0b\u5b89\u5168\u590d\u5236\u6587\u4ef6\u6216\u76ee\u5f55<\/td><td><code>-r<\/code> \u9012\u5f52\u590d\u5236\u76ee\u5f55<\/td><td><code>scp \u6587\u4ef6 \u7528\u6237@\u4e3b\u673a:\u76ee\u5f55<\/code>\uff08\u672c\u5730 \u2192 \u8fdc\u7a0b\uff09<code>scp \u7528\u6237@\u4e3b\u673a:\u6587\u4ef6 \u672c\u5730\u76ee\u5f55<\/code>\uff08\u8fdc\u7a0b \u2192 \u672c\u5730\uff09<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%BB%93%E8%AF%AD\"><\/span>\u7ed3\u8bed<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u8fc7\u672c\u6b21\u5b66\u4e60\u638c\u63e1\u4e86\u591a\u79cd Linux \u5e38\u7528\u547d\u4ee4\uff0c\u5305\u62ec\u8fdb\u7a0b\u7ba1\u7406\u3001\u8ba1\u5212\u4efb\u52a1\u3001\u65f6\u95f4\u4e0e\u65e5\u5386\u67e5\u770b\u3001\u5386\u53f2\u8bb0\u5f55\u64cd\u4f5c\u4ee5\u53ca\u6587\u4ef6\u4f20\u8f93\u7b49\u5185\u5bb9\u3002\u8fd9\u4e9b\u547d\u4ee4\u4e0d\u4ec5\u80fd\u63d0\u5347\u65e5\u5e38\u64cd\u4f5c\u7684\u6548\u7387\uff0c\u8fd8\u4e3a\u7cfb\u7edf\u7ef4\u62a4\u548c\u81ea\u52a8\u5316\u6253\u4e0b\u4e86\u57fa\u7840\u3002\u5728\u4eca\u540e\u7684\u4f7f\u7528\u4e2d\uff0c\u7ed3\u5408\u5b9e\u9645\u573a\u666f\u7075\u6d3b\u8fd0\u7528\uff0c\u8ba9\u547d\u4ee4\u771f\u6b63\u6210\u4e3a\u63d0\u9ad8\u751f\u4ea7\u529b\u7684\u5de5\u5177\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7cfb\u7edf\u7ba1\u7406 \u81ea\u68c0\u7684\u7ed3\u679c\u662f\u627e\u5230\u7b2c\u4e00\u5757\u80fd\u591f\u5f15\u5bfc\u7684\u8bbe\u5907\u627e\u5230\u8fd9\u4e2a\u8bbe\u5907\u4e4b\u540e\u5b83\u5c31\u4f1a\u53bb\u52a0\u8f7d\u8fd9\u5757\u8bbe\u5907\u7684MBR\u8fd9\u4e2a\u6247\u533a\u91cc\u9762\u7684GRU<\/p>\n<div class=\"more-link\">\n\t\t\t\t <a href=\"https:\/\/www.mooloco.com\/?p=136\" class=\"link-btn theme-btn\"><span>Read More <\/span> <i class=\"fa fa-caret-right\"><\/i><\/a>\n\t\t\t<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-136","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.mooloco.com\/index.php?rest_route=\/wp\/v2\/posts\/136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mooloco.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mooloco.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mooloco.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mooloco.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=136"}],"version-history":[{"count":3,"href":"https:\/\/www.mooloco.com\/index.php?rest_route=\/wp\/v2\/posts\/136\/revisions"}],"predecessor-version":[{"id":139,"href":"https:\/\/www.mooloco.com\/index.php?rest_route=\/wp\/v2\/posts\/136\/revisions\/139"}],"wp:attachment":[{"href":"https:\/\/www.mooloco.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mooloco.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mooloco.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}