{"id":117575,"date":"2026-10-25T02:49:40","date_gmt":"2026-10-24T18:49:40","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/117575.html"},"modified":"2026-10-25T02:49:40","modified_gmt":"2026-10-24T18:49:40","slug":"linux-%e5%9f%ba%e7%a1%80%e6%8c%87%e4%bb%a4%e4%b8%8e%e6%96%87%e4%bb%b6%e6%93%8d%e4%bd%9c","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/117575.html","title":{"rendered":"Linux \u57fa\u7840\u6307\u4ee4\u4e0e\u6587\u4ef6\u64cd\u4f5c"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184933-6adcfdbdd5741.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>1. Linux\u3001\u8fdc\u7a0b\u767b\u5f55\u4e0e\u547d\u4ee4\u683c\u5f0f<\/li>\n<li>\n<ul>\n<li>1.1 Shell \u4e0e\u547d\u4ee4\u7684\u6267\u884c<\/li>\n<li>1.2 \u7ec3\u4e60\u76ee\u5f55<\/li>\n<\/ul>\n<\/li>\n<li>2. \u8def\u5f84\u4e0e\u5de5\u4f5c\u76ee\u5f55<\/li>\n<li>\n<ul>\n<li>2.1 \u5f53\u524d\u7528\u6237\u4e0e\u5f53\u524d\u4f4d\u7f6e<\/li>\n<li>2.2 \u7edd\u5bf9\u8def\u5f84\u4e0e\u76f8\u5bf9\u8def\u5f84<\/li>\n<li>2.3 \u76ee\u5f55\u5207\u6362<\/li>\n<\/ul>\n<\/li>\n<li>3. \u6587\u4ef6\u5c5e\u6027\u4e0e\u76ee\u5f55\u5217\u8868<\/li>\n<li>\n<ul>\n<li>3.1 \u6587\u4ef6\u7684\u5185\u5bb9\u4e0e\u5c5e\u6027<\/li>\n<li>3.2 &#096;ls -a&#096;\u3001&#096;ls -l&#096; \u4e0e &#096;ls -d&#096;<\/li>\n<li>3.3 \u957f\u683c\u5f0f\u5b57\u6bb5\u4e0e\u6587\u4ef6\u7c7b\u578b<\/li>\n<\/ul>\n<\/li>\n<li>4. \u76ee\u5f55\u521b\u5efa\u4e0e\u6587\u672c\u5199\u5165<\/li>\n<li>\n<ul>\n<li>4.1 &#096;mkdir&#096; \u4e0e &#096;touch&#096;<\/li>\n<li>4.2 &#096;echo&#096; \u4e0e\u8f93\u51fa\u91cd\u5b9a\u5411<\/li>\n<li>4.3 &#096;cat&#096; \u4e0e\u56fa\u5b9a\u7ec3\u4e60\u6587\u672c<\/li>\n<\/ul>\n<\/li>\n<li>5. \u6587\u4ef6\u590d\u5236\u3001\u79fb\u52a8\u4e0e\u5220\u9664<\/li>\n<li>\n<ul>\n<li>5.1 &#096;cp&#096; \u4e0e\u76ee\u6807\u8def\u5f84<\/li>\n<li>5.2 &#096;mv&#096; \u7684\u79fb\u52a8\u4e0e\u91cd\u547d\u540d<\/li>\n<\/ul>\n<\/li>\n<li>6. \u6587\u672c\u5206\u9875\u4e0e\u5c40\u90e8\u67e5\u770b<\/li>\n<li>\n<ul>\n<li>6.1 &#096;less&#096; \u5206\u9875\u9605\u8bfb<\/li>\n<li>6.2 &#096;head&#096; \u4e0e &#096;tail&#096;<\/li>\n<li>6.3 &#096;tail -f&#096; \u8ddf\u8e2a\u8ffd\u52a0\u5185\u5bb9<\/li>\n<\/ul>\n<\/li>\n<li>7. \u6587\u4ef6\u67e5\u627e\u3001\u6587\u672c\u7b5b\u9009\u4e0e\u7ba1\u9053<\/li>\n<li>\n<ul>\n<li>7.1 &#096;find&#096; \u67e5\u627e\u6587\u4ef6<\/li>\n<li>7.2 &#096;grep&#096; \u7b5b\u9009\u6587\u672c\u884c<\/li>\n<li>7.3 \u7ba1\u9053\u4e0e\u8f93\u51fa\u6587\u4ef6<\/li>\n<\/ul>\n<\/li>\n<li>8. \u547d\u4ee4\u5e2e\u52a9\u4e0e\u5e38\u7528\u8865\u5145<\/li>\n<li>\n<ul>\n<li>8.1 &#096;man&#096;\u3001&#096;&#8211;help&#096; \u4e0e &#096;help&#096;<\/li>\n<li>8.2 \u65f6\u95f4\u4e0e\u7cfb\u7edf\u4fe1\u606f<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>1. Linux\u3001\u8fdc\u7a0b\u767b\u5f55\u4e0e\u547d\u4ee4\u683c\u5f0f<\/h3>\n<p>Linux \u4e25\u683c\u6765\u8bf4\u662f\u64cd\u4f5c\u7cfb\u7edf\u7684\u5185\u6838\u3002\u5e73\u65f6\u5b89\u88c5\u7684Centos\u3001Ubuntu\u3001Debian\u3001Rocky Linux \u7b49\u53d1\u884c\u7248&#xff0c;\u5219\u628a\u5185\u6838\u4e0e\u7cfb\u7edf\u5de5\u5177\u3001\u8f6f\u4ef6\u7ba1\u7406\u5de5\u5177\u7b49\u7ec4\u5408\u6210\u53ef\u4ee5\u4f7f\u7528\u7684\u7cfb\u7edf\u3002<\/p>\n<p>\u5982\u679c\u4f7f\u7528\u4e91\u670d\u52a1\u5668&#xff0c;\u8d2d\u4e70\u65f6\u5173\u6ce8\u5730\u57df\u3001\u8d39\u7528\u3001\u914d\u7f6e\u548c\u7cfb\u7edf\u955c\u50cf\u5373\u53ef&#xff0c;\u57fa\u7840\u547d\u4ee4\u7ec3\u4e60\u901a\u5e38\u4e0d\u9700\u8981\u5f88\u9ad8\u7684\u914d\u7f6e\u3002<\/p>\n<p>\u5728\u4e91\u63a7\u5236\u53f0\u53d6\u5f97\u670d\u52a1\u5668\u7684\u516c\u7f51\u5730\u5740\u4e0e\u767b\u5f55\u7528\u6237\u540d&#xff0c;\u518d\u901a\u8fc7 SSH \u767b\u5f55\u3002Windows \u53ef\u4ee5\u4f7f\u7528 PowerShell \u4e2d\u7684 ssh&#xff0c;\u4e5f\u53ef\u4ee5\u7528 Xshell\u3001MobaXterm \u7b49\u7ec8\u7aef\u8f6f\u4ef6\u5efa\u7acb SSH \u4f1a\u8bdd\u3002<\/p>\n<p><span class=\"token comment\"># \u5728\u672c\u5730 Windows \u4e2d\u6267\u884c&#xff1b;\u66ff\u6362\u7528\u6237\u540d\u548c\u516c\u7f51\u5730\u5740<\/span><br \/>\nssh \u7528\u6237\u540d&#064;\u670d\u52a1\u5668\u516c\u7f51IP<\/p>\n<p>\u5bc6\u94a5\u767b\u5f55\u9700\u8981\u6309\u4e91\u5382\u5546\u8bf4\u660e\u6307\u5b9a\u79c1\u94a5\u3002\u9996\u6b21\u8fde\u63a5\u4f1a\u63d0\u793a\u6838\u5bf9\u4e3b\u673a\u6307\u7eb9&#xff1b;\u5bc6\u7801\u8f93\u5165\u65f6\u901a\u5e38\u4e0d\u663e\u793a\u5b57\u7b26&#xff0c;\u4e5f\u4e0d\u663e\u793a\u661f\u53f7\u3002<\/p>\n<p>\u767b\u5f55\u4ee5\u540e&#xff0c;\u7ec8\u7aef\u91cc\u7684 Linux \u547d\u4ee4\u5728\u8fdc\u7aef\u670d\u52a1\u5668\u6267\u884c\u3002 \u672c\u5730 Windows \u7684\u78c1\u76d8\u8def\u5f84\u4e0d\u80fd\u76f4\u63a5\u5f53\u6210\u670d\u52a1\u5668\u4e0a\u7684\u8def\u5f84\u4f7f\u7528\u3002<\/p>\n<h4>1.1 Shell \u4e0e\u547d\u4ee4\u7684\u6267\u884c<\/h4>\n<p>\u7ec8\u7aef\u63d0\u4f9b\u8f93\u5165\u548c\u663e\u793a\u754c\u9762&#xff0c;Shell \u662f\u89e3\u91ca\u547d\u4ee4\u7684\u7a0b\u5e8f&#xff0c;Bash \u5c31\u662f\u5e38\u89c1\u7684\u4e00\u79cd Shell\u3002Shell \u89e3\u6790\u8f93\u5165&#xff0c;\u5904\u7406\u5f15\u53f7\u3001\u91cd\u5b9a\u5411\u7b49\u8bed\u6cd5&#xff0c;\u518d\u6267\u884c\u5185\u5efa\u547d\u4ee4\u6216\u542f\u52a8\u5916\u90e8\u7a0b\u5e8f&#xff1b;\u7a0b\u5e8f\u901a\u8fc7\u64cd\u4f5c\u7cfb\u7edf\u63d0\u4f9b\u7684\u63a5\u53e3\u5b8c\u6210\u5b9e\u9645\u5de5\u4f5c\u3002<\/p>\n<p>\u5e38\u89c1\u547d\u4ee4\u683c\u5f0f\u662f&#xff1a;<\/p>\n<p>\u547d\u4ee4\u540d [\u9009\u9879] [\u64cd\u4f5c\u5bf9\u8c61]<\/p>\n<p>\u65b9\u62ec\u53f7\u8868\u793a\u8be5\u90e8\u5206\u53ef\u4ee5\u7701\u7565&#xff0c;\u4e0d\u9700\u8981\u628a\u65b9\u62ec\u53f7\u8f93\u5165\u7ec8\u7aef\u3002\u4f8b\u5982&#xff1a;<\/p>\n<p><span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-l<\/span> \/tmp<\/p>\n<p>\u8fd9\u91cc ls \u662f\u547d\u4ee4&#xff0c;-l \u6539\u53d8\u663e\u793a\u65b9\u5f0f&#xff0c;\/tmp \u662f\u88ab\u67e5\u770b\u7684\u76ee\u5f55\u3002\u547d\u4ee4\u540d\u3001\u9009\u9879\u3001\u5bf9\u8c61\u4e4b\u95f4\u7528\u7a7a\u683c\u5206\u5f00\u3002\u5f88\u591a\u77ed\u9009\u9879\u53ef\u4ee5\u8fdb\u884c\u5408\u5e76&#xff0c;\u4f8b\u5982 ls -a -l \u53ef\u4ee5\u5199\u4e3a ls -al\u3002<\/p>\n<h4>1.2 \u7ec3\u4e60\u76ee\u5f55<\/h4>\n<p>\u4ee5\u4e0b\u7ec3\u4e60\u90fd\u4f1a\u5728\u5f53\u524d\u7528\u6237\u7684\u5bb6\u76ee\u5f55&#xff08;\u4e2a\u4eba\u4e91\u670d\u52a1\u5668&#xff09;\u4e2d\u8fdb\u884c&#xff0c;\u4e0d\u9700\u8981 root \u6743\u9650\u3002\u5728\u521b\u5efa\u6211\u4eec\u7684\u7ec3\u4e60\u76ee\u5f55\u524d&#xff0c;\u5148\u786e\u8ba4 linux-command-lab \u4e0d\u662f\u5b58\u653e\u5df2\u6709\u8d44\u6599\u7684\u76ee\u5f55&#xff1b;\u5982\u6709\u91cd\u540d&#xff0c;\u6362\u4e00\u4e2a\u540d\u79f0&#xff0c;\u5e76\u540c\u6b65\u4fee\u6539\u540e\u7eed\u8def\u5f84\u3002<\/p>\n<p>\u4e0b\u9762\u7684 mkdir -p \u4f1a\u521b\u5efa\u76ee\u5f55\u53ca\u7f3a\u5c11\u7684\u4e0a\u7ea7\u76ee\u5f55\u3002<\/p>\n<p><span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> ~\/linux-command-lab\/logs ~\/linux-command-lab\/backup<br \/>\n<span class=\"token builtin class-name\">cd<\/span> ~\/linux-command-lab<\/p>\n<h3>2. \u8def\u5f84\u4e0e\u5de5\u4f5c\u76ee\u5f55<\/h3>\n<hr \/>\n<h4>2.1 \u5f53\u524d\u7528\u6237\u4e0e\u5f53\u524d\u4f4d\u7f6e<\/h4>\n<p>\u5728\u547d\u4ee4\u884c\u8f93\u5165whoami \u663e\u793a\u5f53\u524d\u6709\u6548\u7528\u6237\u7684\u7528\u6237\u540d&#xff0c;pwd \u663e\u793a\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u3002\u524d\u8005\u56de\u7b54\u5f53\u524d\u767b\u5f55\u7684\u8eab\u4efd&#xff0c;\u540e\u8005\u56de\u7b54\u4f4d\u7f6e&#xff0c;\u4e24\u4e2a\u95ee\u9898\u4e92\u4e0d\u66ff\u4ee3\u3002<\/p>\n<p><span class=\"token function\">whoami<\/span><br \/>\n<span class=\"token builtin class-name\">pwd<\/span><\/p>\n<p>\u4f8b\u5982\u5f53\u524d\u6211\u4f5c\u4e3a\u666e\u901a\u7528\u6237\u53ef\u80fd\u770b\u5230&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184935-6adcfdbfd9844.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5de5\u4f5c\u76ee\u5f55\u4e0d\u662f\u201c\u76ee\u524d\u6253\u5f00\u7684\u6574\u4e2a\u670d\u52a1\u5668\u201d&#xff0c;\u800c\u662f\u89e3\u6790\u76f8\u5bf9\u8def\u5f84\u65f6\u6240\u4f9d\u636e\u7684\u76ee\u5f55\u3002<\/p>\n<h4>2.2 \u7edd\u5bf9\u8def\u5f84\u4e0e\u76f8\u5bf9\u8def\u5f84<\/h4>\n<p>Linux \u628a\u6587\u4ef6\u548c\u76ee\u5f55\u7ec4\u7ec7\u5728\u4ee5 \/ \u4e3a\u6839\u7684\u76ee\u5f55\u7ed3\u6784\u4e2d&#xff0c;\u4e0d\u91c7\u7528 Windows \u7684 C:\u3001D: \u76d8\u7b26\u5f62\u5f0f\u3002\u6b64\u5904\u53ef\u4ee5\u5148\u628a\u5b83\u7406\u89e3\u6210\u4e00\u68f5\u76ee\u5f55\u6811&#xff1a;<\/p>\n<p>\/                         \u6839\u76ee\u5f55<br \/>\n\u251c\u2500\u2500 home\/<br \/>\n\u2502   \u2514\u2500\u2500 by2099\/           \u793a\u4f8b\u7528\u6237\u7684\u5bb6\u76ee\u5f55<br \/>\n\u2502       \u2514\u2500\u2500 linux-command-lab\/<br \/>\n\u2502           \u251c\u2500\u2500 logs\/<br \/>\n\u2502           \u2514\u2500\u2500 backup\/<br \/>\n\u2514\u2500\u2500 tmp\/<\/p>\n<p>\u76ee\u5f55\u7528\u6765\u7ec4\u7ec7\u540d\u79f0&#xff1b;\u666e\u901a\u6587\u4ef6\u5219\u4fdd\u5b58\u5177\u4f53\u5185\u5bb9\u3002\u5728\u540e\u9762\u7684\u5b66\u4e60\u4e2d\u6211\u4eec\u4f1a\u8ba4\u8bc6\u5230&#xff0c;\u540c\u4e00\u4e2a\u6587\u4ef6\u53ef\u4ee5\u901a\u8fc7\u4e0d\u540c\u8def\u5f84\u8bbf\u95ee&#xff0c;\u6240\u4ee5\u201c\u80fd\u7528\u8def\u5f84\u5b9a\u4f4d\u6587\u4ef6\u201d\u4e0d\u7b49\u4e8e\u201c\u6bcf\u4e2a\u6587\u4ef6\u53ea\u6709\u4e00\u6761\u8def\u5f84\u201d\u3002<\/p>\n<table>\n<tr>\u5199\u6cd5\u542b\u4e49\u793a\u4f8b<\/tr>\n<tbody>\n<tr>\n<td>\/<\/td>\n<td>\u5355\u72ec\u4f7f\u7528\u8868\u793a\u6839\u76ee\u5f55&#xff1b;\u8def\u5f84\u4e2d\u4e5f\u4f5c\u5206\u9694\u7b26<\/td>\n<td>\/tmp<\/td>\n<\/tr>\n<tr>\n<td>.<\/td>\n<td>\u5f53\u524d\u76ee\u5f55<\/td>\n<td>.\/logs<\/td>\n<\/tr>\n<tr>\n<td>..<\/td>\n<td>\u4e0a\u7ea7\u76ee\u5f55<\/td>\n<td>..\/backup<\/td>\n<\/tr>\n<tr>\n<td>~<\/td>\n<td>\u7531 Shell \u5c55\u5f00\u4e3a\u5f53\u524d\u7528\u6237\u7684\u5bb6\u76ee\u5f55<\/td>\n<td>~\/linux-command-lab<\/td>\n<\/tr>\n<tr>\n<td>\u4ee5 \/ \u5f00\u5934\u7684\u8def\u5f84<\/td>\n<td>\u7edd\u5bf9\u8def\u5f84&#xff0c;\u4ece\u6839\u76ee\u5f55\u5f00\u59cb\u5b9a\u4f4d<\/td>\n<td>\/home\/by2099\/linux-command-lab\/logs<\/td>\n<\/tr>\n<tr>\n<td>\u4e0d\u4ee5 \/ \u5f00\u5934\u7684\u666e\u901a\u8def\u5f84<\/td>\n<td>\u76f8\u5bf9\u8def\u5f84&#xff0c;\u4f9d\u8d56\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55<\/td>\n<td>logs\u3001..\/backup<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6ce8\u610f\u4e0d\u8981\u628a . \u548c .. \u8bb0\u53cd&#xff1a;\u4e00\u4e2a\u70b9\u662f\u5f53\u524d\u76ee\u5f55&#xff0c;\u4e24\u4e2a\u70b9\u662f\u4e0a\u7ea7\u76ee\u5f55\u3002~ \u5219\u662f Shell \u7684\u4fbf\u6377\u5199\u6cd5&#xff0c;\u5c55\u5f00\u540e\u624d\u6210\u4e3a\u5b9e\u9645\u8def\u5f84\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184935-6adcfdbfe904d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>2.3 \u76ee\u5f55\u5207\u6362<\/h4>\n<p>cd \u6539\u53d8\u5f53\u524d Shell \u7684\u5de5\u4f5c\u76ee\u5f55\u3002\u4e0b\u9762\u6309\u987a\u5e8f\u6267\u884c&#xff0c;\u89c2\u5bdf\u6bcf\u6b21 pwd \u7684\u7ed3\u679c&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> logs<br \/>\n<span class=\"token builtin class-name\">pwd<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> <span class=\"token punctuation\">..<\/span>\/backup<br \/>\n<span class=\"token builtin class-name\">pwd<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> <span class=\"token punctuation\">..<\/span><br \/>\n<span class=\"token builtin class-name\">pwd<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184936-6adcfdc09439c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8fd4\u56de\u8def\u5f84\u4f9d\u6b21\u4ee5 \/linux-command-lab\/logs\u3001\/linux-command-lab\/backup\u3001\/linux-command-lab \u7ed3\u5c3e\u3002\u7b2c\u4e8c\u6761 cd \u4e2d&#xff0c;\u5148\u7531 .. \u8fd4\u56de\u7ec3\u4e60\u76ee\u5f55&#xff0c;\u518d\u8fdb\u5165\u5176\u4e2d\u7684 backup&#xff0c;\u5e76\u4e0d\u662f\u5bfb\u627e logs \u5185\u90e8\u7684 backup\u3002<\/p>\n<p>\u53e6\u5916\u6709\u4e09\u79cd\u5f88\u5e38\u7528\u7684\u5199\u6cd5&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> ~       <span class=\"token comment\"># \u8fdb\u5165\u5bb6\u76ee\u5f55&#xff1b;\u5355\u72ec\u8f93\u5165 cd \u4e5f\u53ef\u4ee5<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> \/       <span class=\"token comment\"># \u8fdb\u5165\u6839\u76ee\u5f55<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> &#8211;       <span class=\"token comment\"># \u56de\u5230\u4e0a\u4e00\u6b21\u5de5\u4f5c\u76ee\u5f55&#xff0c;\u901a\u5e38\u4e5f\u4f1a\u663e\u793a\u5207\u6362\u540e\u7684\u8def\u5f84<\/span><\/p>\n<p>Linux \u6587\u4ef6\u540d\u901a\u5e38\u533a\u5206\u5927\u5c0f\u5199&#xff0c;\u6bd4\u5982notes.txt \u548c Notes.txt \u662f\u4e0d\u540c\u7684\u540d\u79f0\u3002\u542b\u7a7a\u683c\u7684\u8def\u5f84\u9700\u8981\u7528\u5f15\u53f7\u6574\u4f53\u5305\u4f4f&#xff0c;\u4f8b\u5982 cd &#034;study notes&#034;&#xff1b;<\/p>\n<h3>3. \u6587\u4ef6\u5c5e\u6027\u4e0e\u76ee\u5f55\u5217\u8868<\/h3>\n<hr \/>\n<h4>3.1 \u6587\u4ef6\u7684\u5185\u5bb9\u4e0e\u5c5e\u6027<\/h4>\n<p>\u5728\u5f53\u524d\u5b66\u4e60\u4e2d&#xff0c;\u6211\u4eec\u53ef\u4ee5\u628a\u6587\u4ef6\u6982\u62ec\u4e3a\u4e24\u4e2a\u65b9\u9762 \u201c\u5185\u5bb9&#xff0b;\u5c5e\u6027\u201d&#xff1a;<\/p>\n<ul>\n<li>\u5185\u5bb9\u662f\u4fdd\u5b58\u7684\u6570\u636e&#xff1b;<\/li>\n<li>\u5c5e\u6027\u63cf\u8ff0\u7c7b\u578b\u3001\u5927\u5c0f\u3001\u6240\u6709\u8005\u3001\u6743\u9650\u548c\u65f6\u95f4\u7b49\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<p>cat \u7b49\u547d\u4ee4\u5173\u6ce8\u6587\u4ef6\u5185\u5bb9&#xff0c;ls -l \u4e3b\u8981\u663e\u793a\u5c5e\u6027\u3002\u4e00\u4e2a\u7a7a\u6587\u4ef6\u867d\u7136\u6ca1\u6709\u6b63\u6587&#xff0c;\u4f46\u4ecd\u7136\u6709\u540d\u79f0\u3001\u7c7b\u578b\u3001\u6240\u6709\u8005\u3001\u65f6\u95f4\u7b49\u4fe1\u606f\u3002<\/p>\n<p>ls \u4e0d\u5e26\u5bf9\u8c61\u65f6\u5217\u51fa\u7684\u662f\u5f53\u524d\u76ee\u5f55\u4e2d\u7684\u53ef\u89c1\u6761\u76ee&#xff1b;\u6307\u5b9a\u76ee\u5f55\u65f6\u9ed8\u8ba4\u5217\u51fa\u5176\u4e2d\u7684\u6761\u76ee&#xff1b;\u6307\u5b9a\u666e\u901a\u6587\u4ef6\u65f6\u663e\u793a\u8be5\u6587\u4ef6\u672c\u8eab\u3002<\/p>\n<h4>3.2 ls -a\u3001ls -l \u4e0e ls -d<\/h4>\n<table>\n<tr>\u9009\u9879\u4f5c\u7528\u9002\u7528\u60c5\u51b5<\/tr>\n<tbody>\n<tr>\n<td>-a<\/td>\n<td>\u5305\u62ec\u4ee5 . \u5f00\u5934\u7684\u9690\u85cf\u540d\u79f0&#xff0c;\u4e5f\u5305\u62ec . \u548c ..<\/td>\n<td>\u67e5\u770b\u9690\u85cf\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>-l<\/td>\n<td>\u4f7f\u7528\u957f\u683c\u5f0f\u663e\u793a\u8be6\u7ec6\u4fe1\u606f<\/td>\n<td>\u67e5\u770b\u7c7b\u578b\u3001\u5927\u5c0f\u3001\u6240\u6709\u8005\u7b49<\/td>\n<\/tr>\n<tr>\n<td>-d<\/td>\n<td>\u663e\u793a\u76ee\u5f55\u6761\u76ee\u672c\u8eab&#xff0c;\u4e0d\u5c55\u5f00\u76ee\u5f55\u5185\u5bb9<\/td>\n<td>\u67e5\u770b\u76ee\u5f55\u81ea\u8eab\u7684\u5c5e\u6027<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span class=\"token function\">ls<\/span><br \/>\n<span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-a<\/span><br \/>\n<span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-l<\/span><br \/>\n<span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-ld<\/span> logs<br \/>\n<span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-ald<\/span> <span class=\"token builtin class-name\">.<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184936-6adcfdc0a8708.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>ls -ald . \u5c31\u662f\u7ec4\u5408\u4f7f\u7528 -a\u3001-l\u3001-d&#xff0c;\u67e5\u770b\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u957f\u683c\u5f0f\u4fe1\u606f\u3002\u5176\u4e2d&#xff0c;\u67e5\u770b\u666e\u901a\u540d\u79f0\u76ee\u5f55\u81ea\u8eab\u5c5e\u6027\u7684\u5173\u952e\u662f -ld&#xff1b;-a \u8d1f\u8d23\u663e\u793a\u9690\u85cf\u540d\u79f0\u3002<\/p>\n<p>\u6bd4\u8f83 ls -l logs \u548c ls -ld logs&#xff1a;\u524d\u8005\u5217\u51fa logs \u5185\u7684\u6761\u76ee&#xff0c;\u6b64\u65f6\u76ee\u5f55\u4e3a\u7a7a&#xff0c;\u901a\u5e38\u53ea\u770b\u5230 total 0&#xff1b;\u540e\u8005\u663e\u793a logs \u76ee\u5f55\u672c\u8eab\u90a3\u4e00\u884c\u3002\u8fd9\u662f -d \u6700\u5bb9\u6613\u6df7\u6dc6\u7684\u5730\u65b9\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184936-6adcfdc0bde8f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>3.3 \u957f\u683c\u5f0f\u5b57\u6bb5\u4e0e\u6587\u4ef6\u7c7b\u578b<\/h4>\n<p>\u4e0b\u9762\u5c31\u662f\u662f\u4e00\u884c\u5178\u578b\u7684\u957f\u683c\u5f0f\u8f93\u51fa&#xff0c;\u5177\u4f53\u7528\u6237\u540d\u548c\u65f6\u95f4\u4ee5\u81ea\u5df1\u7684\u73af\u5883\u4e3a\u51c6&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184936-6adcfdc0cde3c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184936-6adcfdc0dbfe2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<table>\n<tr>\u5b57\u6bb5\u5f53\u524d\u9700\u8981\u7406\u89e3\u7684\u542b\u4e49<\/tr>\n<tbody>\n<tr>\n<td>\u7b2c\u4e00\u4e2a\u5b57\u7b26 &#8211;<\/td>\n<td>\u6587\u4ef6\u7c7b\u578b&#xff0c;\u8fd9\u91cc\u662f\u666e\u901a\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\u540e\u9762\u4e5d\u4e2a\u5b57\u7b26 rw-rw-r&#8211;<\/td>\n<td>\u4e09\u7ec4\u8bbf\u95ee\u6743\u9650<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>\u786c\u94fe\u63a5\u6570&#xff0c;\u5f53\u524d\u5148\u8ba4\u8bc6\u5b57\u6bb5\u540d\u79f0&#xff0c;\u4e0d\u5c55\u5f00\u94fe\u63a5\u673a\u5236<\/td>\n<\/tr>\n<tr>\n<td>\u4e24\u4e2a by2099<\/td>\n<td>\u6240\u6709\u8005\u3001\u6240\u5c5e\u7ec4<\/td>\n<\/tr>\n<tr>\n<td>30<\/td>\n<td>\u5bf9\u8fd9\u4e2a\u666e\u901a\u6587\u4ef6\u800c\u8a00&#xff0c;\u662f\u6587\u4ef6\u957f\u5ea6&#xff0c;\u5355\u4f4d\u4e3a\u5b57\u8282<\/td>\n<\/tr>\n<tr>\n<td>\u65e5\u671f\u548c\u65f6\u95f4<\/td>\n<td>\u9ed8\u8ba4\u4e3b\u8981\u53cd\u6620\u6700\u540e\u4fee\u6539\u65f6\u95f4&#xff0c;\u663e\u793a\u5f62\u5f0f\u53ef\u80fd\u4e0d\u540c<\/td>\n<\/tr>\n<tr>\n<td>notes.txt<\/td>\n<td>\u6587\u4ef6\u540d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5e38\u89c1\u7684\u6587\u4ef6\u7c7b\u578b\u6807\u8bc6\u5982\u4e0b&#xff0c;\u5148\u91cd\u70b9\u8bb0\u4f4f\u524d\u4e09\u79cd&#xff1a;<\/p>\n<table>\n<tr>\u9996\u5b57\u7b26\u7c7b\u578b<\/tr>\n<tbody>\n<tr>\n<td>&#8211;<\/td>\n<td>\u666e\u901a\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>d<\/td>\n<td>\u76ee\u5f55<\/td>\n<\/tr>\n<tr>\n<td>l<\/td>\n<td>\u7b26\u53f7\u94fe\u63a5<\/td>\n<\/tr>\n<tr>\n<td>c\u3001b<\/td>\n<td>\u5b57\u7b26\u8bbe\u5907\u3001\u5757\u8bbe\u5907<\/td>\n<\/tr>\n<tr>\n<td>p\u3001s<\/td>\n<td>FIFO \u7ba1\u9053\u3001\u5957\u63a5\u5b57<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u666e\u901a\u6587\u4ef6\u5185\u90e8\u8fd8\u53ef\u80fd\u662f\u6587\u672c\u3001\u56fe\u7247\u3001\u53ef\u6267\u884c\u7a0b\u5e8f\u7b49\u3002\u7531\u4e8eLinux \u4e0d\u5355\u9760\u6269\u5c55\u540d\u51b3\u5b9a\u6587\u4ef6\u7c7b\u578b&#xff0c;\u6240\u4ee5\u7ed9\u6587\u672c\u6587\u4ef6\u52a0\u4e0a .png \u540e\u7f00\u5e76\u4e0d\u4f1a\u628a\u5b83\u53d8\u6210\u56fe\u7247\u3002<\/p>\n<h3>4. \u76ee\u5f55\u521b\u5efa\u4e0e\u6587\u672c\u5199\u5165<\/h3>\n<hr \/>\n<h4>4.1 mkdir \u4e0e touch<\/h4>\n<p>mkdir \u7528\u6765\u521b\u5efa\u76ee\u5f55&#xff0c;\u4f7f\u7528mkdir -p a\/b \u547d\u4ee4\u4f1a\u5728\u9700\u8981\u65f6\u8865\u9f50\u4e0a\u7ea7\u76ee\u5f55\u3002<\/p>\n<p>\u5f53\u6307\u5b9a\u76ee\u5f55\u5df2\u7ecf\u5b58\u5728\u65f6&#xff0c;-p \u901a\u5e38\u4e5f\u4e0d\u4f1a\u56e0\u8fd9\u4e00\u70b9\u62a5\u9519&#xff0c;\u4e5f\u4e0d\u4f1a\u66ff\u4f60\u6e05\u7a7a\u5df2\u6709\u76ee\u5f55\u3002<\/p>\n<p>touch \u5728\u76ee\u6807\u4e0d\u5b58\u5728\u65f6\u901a\u5e38\u521b\u5efa\u7a7a\u6587\u4ef6&#xff1b;\u82e5\u76ee\u6807\u5df2\u7ecf\u5b58\u5728\u65f6&#xff0c;\u9ed8\u8ba4\u66f4\u65b0\u65f6\u95f4\u6233&#xff0c;\u4e0d\u4f1a\u6e05\u7a7a\u6216\u91cd\u5199\u5df2\u6709\u5185\u5bb9\u3002<\/p>\n<p><span class=\"token function\">mkdir<\/span> drafts<br \/>\n<span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> work\/day1<br \/>\n<span class=\"token function\">touch<\/span> notes.txt<br \/>\n<span class=\"token function\">touch<\/span> .practice<br \/>\n<span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-a<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184937-6adcfdc1880b5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>tree&#xff1a;\u4ee5\u6811\u5f62\u7ed3\u6784\u6253\u5370\u5f53\u524d\u76ee\u5f55\u4e0b\u6240\u6709\u6587\u4ef6\u548c\u6587\u4ef6\u5939&#xff0c;\u4e00\u773c\u770b\u61c2\u76ee\u5f55\u5c42\u7ea7\u5173\u7cfb\u3002 \u9ed8\u8ba4\u7cfb\u7edf\u6ca1\u6709\u81ea\u5e26 tree&#xff0c;\u9700\u8981\u5148\u5b89\u88c5&#xff08;\u4e0b\u9762\u4e3a\u5b89\u88c5\u547d\u4ee4&#xff0c;\u6b64\u65f6\u76f4\u63a5\u590d\u5236\u6267\u884c\u5373\u53ef&#xff09;&#xff1a;<\/p>\n<ul>\n<li>sudo yum install tree -y(\u666e\u901a\u7528\u6237)<\/li>\n<li>yum install tree -y(root\u7528\u6237)<\/li>\n<\/ul>\n<p>.practice \u4ee5\u70b9\u5f00\u5934&#xff0c;\u56e0\u6b64\u9ed8\u8ba4\u7684 ls \u4e0d\u663e\u793a\u5b83&#xff0c;ls -a \u53ef\u4ee5\u663e\u793a\u3002\u800c\u6240\u8c13\u7684\u9690\u85cf\u9996\u5148\u662f\u4e00\u79cd\u547d\u540d\u7ea6\u5b9a&#xff0c;\u4e0d\u4ee3\u8868\u6587\u4ef6\u5f97\u5230\u52a0\u5bc6\u6216\u8bbf\u95ee\u4fdd\u62a4\u3002<\/p>\n<h4>4.2 echo \u4e0e\u8f93\u51fa\u91cd\u5b9a\u5411<\/h4>\n<p>echo \u53ef\u4ee5\u628a\u53c2\u6570\u8f93\u51fa\u51fa\u6765&#xff0c;\u9ed8\u8ba4\u5728\u672b\u5c3e\u52a0\u4e00\u4e2a\u6362\u884c\u3002\u4f8b\u5982 echo &#039;hello Linux&#039; \u901a\u5e38\u53ea\u5728\u7ec8\u7aef\u663e\u793a\u6587\u5b57&#xff0c;\u4e0d\u4f1a\u81ea\u52a8\u4fdd\u5b58\u6210\u6587\u4ef6\u3002<\/p>\n<p>\u9700\u8981\u5199\u5165\u6587\u4ef6&#xff0c;\u53ef\u4f7f\u7528 Shell \u7684\u8f93\u51fa\u91cd\u5b9a\u5411&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#039;Linux practice&#039;<\/span> <span class=\"token operator\">&gt;<\/span> notes.txt<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#039;paths and files&#039;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> notes.txt<br \/>\n<span class=\"token function\">cat<\/span> notes.txt<\/p>\n<p>\u8f93\u51fa\u4e3a&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184937-6adcfdc19e44c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<table>\n<tr>\u5199\u6cd5\u7ed3\u679c<\/tr>\n<tbody>\n<tr>\n<td>\u547d\u4ee4 &gt; \u6587\u4ef6<\/td>\n<td>\u5c06\u6807\u51c6\u8f93\u51fa\u5199\u5165\u6587\u4ef6&#xff1b;\u6587\u4ef6\u4e0d\u5b58\u5728\u5219\u521b\u5efa&#xff0c;\u5b58\u5728\u65f6\u901a\u5e38\u5148\u6e05\u7a7a\u518d\u5199\u5165<\/td>\n<\/tr>\n<tr>\n<td>\u547d\u4ee4 &gt;&gt; \u6587\u4ef6<\/td>\n<td>\u5c06\u6807\u51c6\u8f93\u51fa\u8ffd\u52a0\u5230\u6587\u4ef6\u672b\u5c3e&#xff1b;\u6587\u4ef6\u4e0d\u5b58\u5728\u5219\u521b\u5efa<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&gt; \u548c &gt;&gt; \u662f Shell \u8bed\u6cd5&#xff0c;\u4e0d\u662f echo \u7684\u9009\u9879\u3002<\/p>\n<p>\u201c\u6807\u51c6\u8f93\u51fa\u201d\u53ef\u4ee5\u5148\u7406\u89e3\u4e3a\u7a0b\u5e8f\u6b63\u5e38\u8f93\u51fa\u6570\u636e\u7684\u901a\u9053&#xff0c;\u9ed8\u8ba4\u901a\u5e38\u8fde\u5230\u7ec8\u7aef\u3002<\/p>\n<p>\u7279\u522b\u6ce8\u610f&#xff0c;Shell \u4e00\u822c\u5728\u547d\u4ee4\u771f\u6b63\u8bfb\u53d6\u6587\u4ef6\u524d\u5c31\u5904\u7406\u91cd\u5b9a\u5411\u3002 \u56e0\u6b64&#xff0c;\u4e0d\u80fd\u7528 cat notes.txt &gt; notes.txt \u6765\u8fdb\u884c\u201c\u539f\u6837\u5199\u56de\u201d&#xff0c;\u8f93\u5165\u6587\u4ef6\u53ef\u80fd\u5148\u88ab\u6e05\u7a7a\u3002\u9700\u8981\u5904\u7406\u539f\u6587\u4ef6\u65f6&#xff0c;\u5148\u8f93\u51fa\u5230\u4e0d\u540c\u7684\u6587\u4ef6\u540d&#xff0c;\u518d\u68c0\u67e5\u7ed3\u679c\u3002<\/p>\n<h4>4.3 cat \u4e0e\u56fa\u5b9a\u7ec3\u4e60\u6587\u672c<\/h4>\n<p>cat \u6587\u4ef6 \u53ef\u4ee5\u67e5\u770b\u5185\u5bb9&#xff0c;\u591a\u4e2a\u6587\u4ef6\u5219\u6309\u53c2\u6570\u987a\u5e8f\u8fde\u7eed\u8f93\u51fa\u3002\u9002\u5408\u77ed\u6587\u672c&#xff0c;\u4e0d\u9002\u5408\u4e0d\u52a0\u533a\u5206\u5730\u67e5\u770b\u56fe\u7247\u3001\u538b\u7f29\u5305\u7b49\u4e8c\u8fdb\u5236\u5185\u5bb9\u3002<\/p>\n<p>\u5148\u5efa\u7acb\u4e00\u4efd\u516d\u884c\u7684\u6a21\u62df\u65e5\u5fd7&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#039;INFO service start&#039;<\/span> <span class=\"token operator\">&gt;<\/span> logs\/sample.log<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#039;INFO user login&#039;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> logs\/sample.log<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#039;ERROR disk full&#039;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> logs\/sample.log<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#039;warning retry&#039;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> logs\/sample.log<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#039;error timeout&#039;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> logs\/sample.log<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#039;INFO service stop&#039;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> logs\/sample.log<br \/>\n<span class=\"token function\">cat<\/span> logs\/sample.log<\/p>\n<p>\u8f93\u51fa\u4e3a&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184937-6adcfdc1b2dec.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u6269\u5c55\u9009\u9879&#xff1a;<\/p>\n<ul>\n<li>cat -n logs\/sample.log \u7ed9\u6240\u6709\u8f93\u51fa\u884c\u7f16\u53f7&#xff0c;\u65b9\u4fbf\u5bf9\u7167\u4f4d\u7f6e\u3002\u7f16\u53f7\u53ea\u52a0\u5728\u663e\u793a\u7ed3\u679c\u4e2d&#xff0c;\u4e0d\u4f1a\u4fee\u6539\u539f\u6587\u4ef6\u3002<\/li>\n<li>cat -b \u53ea\u7ed9\u975e\u7a7a\u884c\u7f16\u53f7\u3002<\/li>\n<li>cat -s \u5c06\u8fde\u7eed\u7684\u591a\u4e2a\u7a7a\u884c\u538b\u7f29\u663e\u793a\u4e3a\u4e00\u4e2a\u7a7a\u884c\u3002<\/li>\n<\/ul>\n<h3>5. \u6587\u4ef6\u590d\u5236\u3001\u79fb\u52a8\u4e0e\u5220\u9664<\/h3>\n<hr \/>\n<h4>5.1 cp \u4e0e\u76ee\u6807\u8def\u5f84<\/h4>\n<p>cp \u6e90 \u76ee\u6807 \u7528\u4e8e\u590d\u5236\u6587\u4ef6\u3002\u5e38\u89c1\u7528\u6cd5\u5982\u4e0b&#xff1a;<\/p>\n<p><span class=\"token function\">cp<\/span> notes.txt notes-copy.txt<br \/>\n<span class=\"token function\">cp<\/span> notes.txt backup\/<br \/>\n<span class=\"token function\">cp<\/span> <span class=\"token parameter variable\">-r<\/span> logs logs-copy<\/p>\n<li>\u7b2c\u4e00\u6761\u521b\u5efa\u4e0d\u540c\u540d\u79f0\u7684\u526f\u672c&#xff1b;<\/li>\n<li>\u7b2c\u4e8c\u6761\u628a\u526f\u672c\u653e\u5230\u5df2\u5b58\u5728\u7684 backup \u76ee\u5f55\u4e2d&#xff0c;\u540d\u79f0\u4ecd\u4e3a notes.txt&#xff1b;<\/li>\n<li>\u7b2c\u4e09\u6761\u9012\u5f52\u590d\u5236\u76ee\u5f55\u3002\u8fd9\u91cc logs-copy \u539f\u5148\u4e0d\u5b58\u5728&#xff0c;\u6267\u884c\u540e\u5f97\u5230 logs-copy\/sample.log\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184937-6adcfdc1d0e2b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<p>\u76ee\u6807\u662f\u5426\u5df2\u7ecf\u5b58\u5728&#xff0c;\u4f1a\u5f71\u54cd\u7ed3\u679c\u3002 \u4e0a\u8ff0\u60c5\u51b5\u5982\u679c logs-copy \u5df2\u7ecf\u662f\u4e00\u4e2a\u76ee\u5f55&#xff0c;\u518d\u6267\u884c cp -r logs logs-copy\u65f6&#xff0c;\u901a\u5e38\u4f1a\u628a logs \u653e\u8fdb\u5b83\u91cc\u9762&#xff0c;\u5f62\u6210 logs-copy\/logs\/\u2026\u3002<\/p>\n<p>\u590d\u5236\u666e\u901a\u6587\u4ef6\u65f6&#xff0c;\u5982\u679c\u76ee\u6807\u6587\u4ef6\u5df2\u7ecf\u5b58\u5728&#xff0c;\u9ed8\u8ba4\u53ef\u80fd\u8986\u76d6\u5b83\u3002\u5982\u679c\u5e0c\u671b\u8986\u76d6\u524d\u8be2\u95ee\u7528\u6237\u662f\u5426\u786e\u8ba4\u6267\u884c&#xff0c;\u53ef\u4ee5\u4f7f\u7528 cp -i \u6e90 \u76ee\u6807\u3002<\/p>\n<h4>5.2 mv \u7684\u79fb\u52a8\u4e0e\u91cd\u547d\u540d<\/h4>\n<p>mv \u6e90 \u76ee\u6807 \u7528\u6765\u79fb\u52a8\u6587\u4ef6\u6216\u76ee\u5f55&#xff0c;\u540c\u65f6\u4e5f\u7528\u4e8e\u91cd\u547d\u540d&#xff1a;<\/p>\n<p><span class=\"token function\">mv<\/span> notes-copy.txt notes-renamed.txt<br \/>\n<span class=\"token function\">mv<\/span> notes-renamed.txt backup\/<br \/>\n<span class=\"token function\">ls<\/span> backup<\/p>\n<p>\u6b64\u65f6\u8f93\u51fa\u4e3a&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184937-6adcfdc1f3f4b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u7b2c\u4e00\u6761\u4fee\u6539\u540d\u79f0&#xff0c;\u7b2c\u4e8c\u6761\u6539\u53d8\u6240\u5728\u76ee\u5f55&#xff1b;\u79fb\u52a8\u540e&#xff0c;\u539f\u4f4d\u7f6e\u4e0d\u518d\u4fdd\u7559\u90a3\u4e2a\u526f\u672c\u3002<\/p>\n<p>\u79fb\u52a8\u6574\u4e2a\u76ee\u5f55\u4e0d\u9700\u8981\u50cf cp \u90a3\u6837\u6dfb\u52a0 -r\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184938-6adcfdc21317f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4e5f\u53ef\u4ee5\u540c\u65f6\u6539\u53d8\u6587\u4ef6\u7684\u4f4d\u7f6e\u4e0e\u540d\u79f0&#xff0c;\u4f8b\u5982 mv old.txt backup\/new.txt\u3002\u4f46\u76ee\u6807\u6587\u4ef6\u5df2\u5b58\u5728\u65f6\u4e5f\u53ef\u80fd\u53d1\u751f\u8986\u76d6&#xff1b;\u9700\u8981\u8be2\u95ee\u786e\u8ba4\u65f6\u4f7f\u7528 mv -i\u3002<\/p>\n<h3>6. \u6587\u672c\u5206\u9875\u4e0e\u5c40\u90e8\u67e5\u770b<\/h3>\n<hr \/>\n<h4>6.1 less \u5206\u9875\u9605\u8bfb<\/h4>\n<p>\u5f53\u4e00\u4e2a\u6587\u4ef6\u6bd4\u8f83\u957f\u65f6&#xff0c;cat \u4f1a\u628a\u5185\u5bb9\u76f4\u63a5\u5168\u90e8\u8f93\u51fa&#xff0c;\u5bb9\u6613\u5237\u8fc7\u9700\u8981\u7684\u4f4d\u7f6e\u3002less logs\/sample.log \u5219\u8fdb\u5165\u5206\u9875\u9605\u8bfb\u754c\u9762\u3002<\/p>\n<table>\n<tr>\u6309\u952e\u5e38\u89c1\u4f5c\u7528<\/tr>\n<tbody>\n<tr>\n<td>\u7a7a\u683c\u3001PageDown<\/td>\n<td>\u5411\u540e\u7ffb\u9875<\/td>\n<\/tr>\n<tr>\n<td>PageUp\u3001b<\/td>\n<td>\u5411\u524d\u7ffb\u9875<\/td>\n<\/tr>\n<tr>\n<td>\/ERROR \u540e\u6309 Enter<\/td>\n<td>\u5411\u540e\u641c\u7d22 ERROR<\/td>\n<\/tr>\n<tr>\n<td>n\u3001N<\/td>\n<td>\u91cd\u590d\u4e0a\u6b21\u641c\u7d22\u3001\u53cd\u65b9\u5411\u91cd\u590d\u641c\u7d22<\/td>\n<\/tr>\n<tr>\n<td>g\u3001G<\/td>\n<td>\u5230\u6587\u4ef6\u5f00\u5934\u3001\u672b\u5c3e<\/td>\n<\/tr>\n<tr>\n<td>q<\/td>\n<td>\u9000\u51fa\u5206\u9875\u754c\u9762<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u9700\u8981\u6307\u5b9a\u884c\u53f7\u65f6\u4f7f\u7528 less -N logs\/sample.log&#xff0c;\u8fd9\u91cc\u662f\u5927\u5199 N\u3002<\/p>\n<h4>6.2 head \u4e0e tail<\/h4>\n<p>\u53ea\u60f3\u770b\u6587\u4ef6\u7684\u5f00\u5934\u6216\u7ed3\u5c3e\u65f6&#xff0c;\u7528 head \u548c tail&#xff0c;\u9ed8\u8ba4\u901a\u5e38\u663e\u793a\u5341\u884c&#xff0c;-n \u53ef\u6307\u5b9a\u884c\u6570&#xff1a;<\/p>\n<p><span class=\"token function\">head<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token number\">3<\/span> logs\/sample.log<br \/>\n<span class=\"token function\">tail<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token number\">2<\/span> logs\/sample.log<\/p>\n<p>\u7b2c\u4e00\u6761\u8f93\u51fa&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184938-6adcfdc2c43fc.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u7b2c\u4e8c\u6761\u8f93\u51fa&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184938-6adcfdc2d42d7.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>6.3 tail -f \u8ddf\u8e2a\u8ffd\u52a0\u5185\u5bb9<\/h4>\n<p>tail -f \u5148\u663e\u793a\u672b\u5c3e\u5185\u5bb9&#xff0c;\u518d\u7ee7\u7eed\u7b49\u5f85\u65b0\u8ffd\u52a0\u7684\u6570\u636e&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u670d\u52a1\u5668\u7ec8\u7aef A<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> ~\/linux-command-lab<br \/>\n<span class=\"token function\">tail<\/span> <span class=\"token parameter variable\">-f<\/span> logs\/sample.log<\/p>\n<p>\u518d\u5f00\u4e00\u4e2a\u767b\u5f55\u5230\u540c\u4e00\u53f0\u670d\u52a1\u5668\u3001\u540c\u4e00\u7528\u6237\u7684\u7ec8\u7aef&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u670d\u52a1\u5668\u7ec8\u7aef B<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> ~\/linux-command-lab<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#039;INFO new connection&#039;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> logs\/sample.log<\/p>\n<p>\u7ec8\u7aef A \u968f\u540e\u663e\u793a\u65b0\u884c\u3002\u6309 Ctrl&#043;C \u7ed3\u675f\u8ddf\u8e2a&#xff0c;\u56de\u5230\u547d\u4ee4\u63d0\u793a\u7b26\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184938-6adcfdc2e3989.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184939-6adcfdc3027c6.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>7. \u6587\u4ef6\u67e5\u627e\u3001\u6587\u672c\u7b5b\u9009\u4e0e\u7ba1\u9053<\/h3>\n<hr \/>\n<h4>7.1 find \u67e5\u627e\u6587\u4ef6<\/h4>\n<p>\u77e5\u9053\u6587\u4ef6\u7684\u540d\u79f0\u3001\u4f46\u4e0d\u77e5\u9053\u6587\u4ef6\u5728\u54ea\u65f6&#xff0c;\u53ef\u4ee5\u4f7f\u7528 find \u8d77\u70b9 \u6761\u4ef6\u3002\u5b83\u904d\u5386\u6307\u5b9a\u76ee\u5f55\u8303\u56f4&#xff0c;\u8f93\u51fa\u7b26\u5408\u6761\u4ef6\u7684\u8def\u5f84&#xff1a;<\/p>\n<p><span class=\"token function\">find<\/span> <span class=\"token builtin class-name\">.<\/span> <span class=\"token parameter variable\">-name<\/span> <span class=\"token string\">&#039;notes.txt&#039;<\/span><br \/>\n<span class=\"token function\">find<\/span> <span class=\"token builtin class-name\">.<\/span> <span class=\"token parameter variable\">-type<\/span> f <span class=\"token parameter variable\">-name<\/span> <span class=\"token string\">&#039;*.log&#039;<\/span><\/p>\n<p>\u8f93\u51fa&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184939-6adcfdc3152b0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u7b2c\u4e00\u6761\u627e\u5230\u4e24\u6761\u8def\u5f84&#xff0c;\u8f93\u51fa\u5148\u540e\u987a\u5e8f\u4e0d\u4f5c\u4fdd\u8bc1\u3002<\/p>\n<p>\u7b2c\u4e8c\u6761\u67e5\u627e\u540e\u7f00\u4e3a.log\u7684\u666e\u901a\u6587\u4ef6&#xff0c;-type f \u662f\u7c7b\u578b\u6761\u4ef6&#xff0c;-name \u540e\u662f\u540d\u79f0\u6a21\u5f0f&#xff0c;\u4e0d\u662f\u641c\u7d22\u6587\u4ef6\u6b63\u6587&#xff08;*\u53f7\u662f\u901a\u914d\u7b26&#xff09;\u3002<\/p>\n<h4>7.2 grep \u7b5b\u9009\u6587\u672c\u884c<\/h4>\n<p>find \u67e5\u627e\u8def\u5f84&#xff0c;grep \u6309\u6a21\u5f0f\u7b5b\u9009\u6587\u672c\u884c\u3002\u5b83\u901a\u5e38\u8f93\u51fa\u6574\u6761\u5339\u914d\u884c&#xff0c;\u800c\u4e0d\u53ea\u662f\u547d\u4e2d\u7684\u51e0\u4e2a\u5b57\u7b26\u3002<\/p>\n<p><span class=\"token function\">grep<\/span> <span class=\"token string\">&#039;ERROR&#039;<\/span> logs\/sample.log<br \/>\n<span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-ni<\/span> <span class=\"token string\">&#039;error&#039;<\/span> logs\/sample.log<br \/>\n<span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-nvi<\/span> <span class=\"token string\">&#039;error&#039;<\/span> logs\/sample.log<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184939-6adcfdc32b1e4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u7b2c\u4e00\u6761\u533a\u5206\u5927\u5c0f\u5199&#xff0c;\u53ea\u8f93\u51fa&#xff1a;<\/p>\n<p>ERROR disk full<\/p>\n<p>\u7b2c\u4e8c\u6761\u5e26\u884c\u53f7\u3001\u5ffd\u7565\u5927\u5c0f\u5199&#xff1a;<\/p>\n<p>3:ERROR disk full<br \/>\n5:error timeout<\/p>\n<p>\u7b2c\u4e09\u6761\u662f\u5728\u540c\u6837\u5ffd\u7565\u5927\u5c0f\u5199\u7684\u524d\u63d0\u4e0b&#xff0c;\u8f93\u51fa\u4e0d\u5339\u914d\u7684\u884c&#xff1a;<\/p>\n<p>1:INFO service start<br \/>\n2:INFO user login<br \/>\n4:warning retry<br \/>\n6:INFO service stop<\/p>\n<table>\n<tr>\u9009\u9879\u4f5c\u7528<\/tr>\n<tbody>\n<tr>\n<td>-n<\/td>\n<td>\u663e\u793a\u8f93\u5165\u4e2d\u7684\u884c\u53f7<\/td>\n<\/tr>\n<tr>\n<td>-i<\/td>\n<td>\u5ffd\u7565\u5927\u5c0f\u5199\u5dee\u5f02<\/td>\n<\/tr>\n<tr>\n<td>-v<\/td>\n<td>\u53cd\u5411\u9009\u62e9\u4e0d\u5339\u914d\u7684\u884c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>7.3 \u7ba1\u9053\u4e0e\u8f93\u51fa\u6587\u4ef6<\/h4>\n<p>\u7ba1\u9053\u7b26 | \u53ef\u4ee5\u628a\u5de6\u8fb9\u547d\u4ee4\u7684\u6807\u51c6\u8f93\u51fa\u8fde\u63a5\u5230\u53f3\u8fb9\u547d\u4ee4\u7684\u6807\u51c6\u8f93\u5165\u3002\u6807\u51c6\u8f93\u5165\u53ef\u4ee5\u7406\u89e3\u4e3a\u7a0b\u5e8f\u63a5\u6536\u6570\u636e\u7684\u901a\u9053&#xff1b;\u524d\u9762\u6ca1\u6709\u7ed9 head\u3001tail \u76f4\u63a5\u6307\u5b9a\u6587\u4ef6\u65f6&#xff0c;\u4e5f\u53ef\u4ee5\u7531\u8fd9\u4e2a\u901a\u9053\u63d0\u4f9b\u6570\u636e\u3002<\/p>\n<p>\u4f8b\u5982\u67e5\u770b\u65e5\u5fd7\u7684\u7b2c 2&#xff5e;4 \u884c&#xff1a;<\/p>\n<p><span class=\"token function\">head<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token number\">4<\/span> logs\/sample.log <span class=\"token operator\">|<\/span> <span class=\"token function\">tail<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token number\">3<\/span><\/p>\n<p>\u7ed3\u679c\u4e3a&#xff1a; <img decoding=\"async\" src=\"2026-10-25t5tr4wfgcsq.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5de6\u8fb9\u5148\u53d6\u524d\u56db\u884c&#xff0c;\u53f3\u8fb9\u518d\u4ece\u8fd9\u56db\u884c\u91cc\u53d6\u6700\u540e\u4e09\u884c\u3002\u56e0\u6b64&#xff0c;tail \u63a5\u6536\u5230\u7684\u662f\u6587\u672c\u6570\u636e&#xff0c;\u4e0d\u662f\u5b57\u7b26\u4e32 logs\/sample.log&#xff0c;\u4e5f\u4e0d\u662f\u5de6\u8fb9\u547d\u4ee4\u7684\u6587\u4ef6\u540d\u53c2\u6570\u3002<\/p>\n<p>\u7b5b\u9009\u7ed3\u679c\u8fd8\u53ef\u4ee5\u7ee7\u7eed\u4fdd\u5b58&#xff1a;<\/p>\n<p><span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-i<\/span> <span class=\"token string\">&#039;error&#039;<\/span> logs\/sample.log <span class=\"token operator\">&gt;<\/span> errors.txt<br \/>\n<span class=\"token function\">cat<\/span> errors.txt<\/p>\n<p>\u8f93\u51fa\u4e3a&#xff1a; <img decoding=\"async\" src=\"2026-10-25i5yk0tzyczl.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"2026-10-2554bkr1swsiv.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>8. \u547d\u4ee4\u5e2e\u52a9\u4e0e\u5e38\u7528\u8865\u5145<\/h3>\n<hr \/>\n<h4>8.1 man\u3001&#8211;help \u4e0e help<\/h4>\n<p>\u521a\u5f00\u59cb\u5b66\u4e60\u65f6\u53ef\u4ee5\u4e0d\u5fc5\u8981\u628a\u5168\u90e8\u9009\u9879\u80cc\u4e0b\u6765&#xff0c;\u4f46\u662f\u8981\u80fd\u627e\u5230\u672c\u673a\u5de5\u5177\u7684\u8bf4\u660e&#xff1a;<\/p>\n<p><span class=\"token function\">man<\/span> <span class=\"token function\">ls<\/span><br \/>\n<span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">&#8211;help<\/span><br \/>\n<span class=\"token builtin class-name\">help<\/span> <span class=\"token builtin class-name\">cd<\/span><\/p>\n<ul>\n<li>man \u67e5\u627e\u672c\u673a\u624b\u518c&#xff0c;\u5206\u9875\u5668\u5e38\u652f\u6301 \/\u5173\u952e\u8bcd \u641c\u7d22\u3001n \u7ee7\u7eed\u67e5\u627e\u3001q \u9000\u51fa\u3002<\/li>\n<li>&#8211;help \u5e38\u7528\u4e8e GNU \u5de5\u5177\u7684\u7b80\u8981\u5e2e\u52a9&#xff0c;\u5e76\u975e\u6240\u6709\u547d\u4ee4\u90fd\u652f\u6301\u3002<\/li>\n<\/ul>\n<h4>8.2 \u65f6\u95f4\u4e0e\u7cfb\u7edf\u4fe1\u606f<\/h4>\n<p>\u4ee5\u4e0b\u7528\u6cd5\u5076\u5c14\u9700\u8981\u65f6\u518d\u67e5&#xff0c;\u4e0d\u6269\u5c55\u6210\u53e6\u4e00\u5957\u9009\u9879\u76ee\u5f55&#xff1a;<\/p>\n<table>\n<tr>\u547d\u4ee4\u7528\u9014\u4e0e\u8fb9\u754c<\/tr>\n<tbody>\n<tr>\n<td>date<\/td>\n<td>\u67e5\u770b\u670d\u52a1\u5668\u5f53\u524d\u65f6\u95f4&#xff0c;\u65f6\u533a\u4ee5\u670d\u52a1\u5668\u8bbe\u7f6e\u4e3a\u51c6<\/td>\n<\/tr>\n<tr>\n<td>date &#039;&#043;%Y-%m-%d %H:%M:%S&#039;<\/td>\n<td>\u683c\u5f0f\u5316\u663e\u793a\u65f6\u95f4&#xff1b;\u5927\u5199 %M \u662f\u5206\u949f&#xff0c;\u5c0f\u5199 %m \u662f\u6708\u4efd<\/td>\n<\/tr>\n<tr>\n<td>date &#043;%s<\/td>\n<td>\u67e5\u770b Unix \u65f6\u95f4\u6233&#xff0c;\u5373\u4ece UTC \u7684 1970-01-01 00:00:00 \u8d77\u8ba1\u7684\u79d2\u6570&#xff0c;\u4e0d\u8ba1\u95f0\u79d2<\/td>\n<\/tr>\n<tr>\n<td>uname -r<\/td>\n<td>\u67e5\u770b\u5185\u6838\u7248\u672c&#xff0c;\u4e0d\u662f\u53d1\u884c\u7248\u7248\u672c<\/td>\n<\/tr>\n<tr>\n<td>cat \/etc\/os-release<\/td>\n<td>\u5728\u63d0\u4f9b\u8be5\u6587\u4ef6\u7684\u53d1\u884c\u7248\u4e0a\u67e5\u770b\u53d1\u884c\u7248\u6807\u8bc6<\/td>\n<\/tr>\n<tr>\n<td>cal<\/td>\n<td>\u67e5\u770b\u65e5\u5386<\/td>\n<\/tr>\n<tr>\n<td>bc<\/td>\n<td>\u547d\u4ee4\u884c\u8ba1\u7b97\u5668&#xff0c;\u53ef\u80fd\u9700\u8981\u53e6\u88c5\u8f6f\u4ef6&#xff1b;\u4ea4\u4e92\u65f6\u8f93\u5165 quit \u9000\u51fa<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7ec8\u7aef\u91cc\u7684 Ctrl&#043;C \u901a\u5e38\u7528\u4e8e\u4e2d\u65ad\u5f53\u524d\u524d\u53f0\u4efb\u52a1&#xff1b;Ctrl&#043;D \u5e38\u7528\u4e8e\u5728\u5f53\u524d\u8f93\u5165\u4e3a\u7a7a\u65f6\u8868\u793a\u8f93\u5165\u7ed3\u675f&#xff0c;\u5728 Shell \u63d0\u793a\u7b26\u5904\u4e5f\u53ef\u80fd\u9000\u51fa\u4f1a\u8bdd&#xff0c;\u6240\u4ee5\u4e0d\u80fd\u628a\u5b83\u4eec\u90fd\u5f53\u4f5c\u662f Windows \u7684\u590d\u5236\u6216\u7c98\u8d34\u5feb\u6377\u952e&#xff0c;\u590d\u5236\u3001\u7c98\u8d34\u5feb\u6377\u952e\u53d6\u51b3\u4e8e\u4f7f\u7528\u7684\u7ec8\u7aef\u8f6f\u4ef6\u3002<\/p>\n<p>\u81f3\u6b64&#xff0c;\u65e5\u5e38\u6587\u4ef6\u64cd\u4f5c\u5df2\u7ecf\u80fd\u8fde\u8d77\u6765&#xff1a;\u7528\u8def\u5f84\u786e\u5b9a\u5bf9\u8c61&#xff0c;\u7528 ls \u89c2\u5bdf\u5c5e\u6027&#xff0c;\u7528 cp\/mv\/rm \u6574\u7406\u6587\u4ef6&#xff0c;\u518d\u7528 less\/head\/tail\/grep \u8bfb\u53d6\u9700\u8981\u7684\u4fe1\u606f\u3002<\/p>\n<p><img decoding=\"async\" src=\"2026-10-25bmhu3kg5sto.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u76ee\u5f551. Linux\u3001\u8fdc\u7a0b\u767b\u5f55\u4e0e\u547d\u4ee4\u683c\u5f0f1.1 Shell \u4e0e\u547d\u4ee4\u7684\u6267\u884c1.2 \u7ec3\u4e60\u76ee\u5f552. \u8def\u5f84\u4e0e\u5de5\u4f5c\u76ee\u5f552.1 \u5f53\u524d\u7528\u6237\u4e0e\u5f53\u524d\u4f4d\u7f6e2.2 \u7edd\u5bf9\u8def\u5f84\u4e0e\u76f8\u5bf9\u8def\u5f842.3 \u76ee\u5f55\u5207\u63623. \u6587\u4ef6\u5c5e\u6027\u4e0e\u76ee\u5f55\u5217\u88683.1 \u6587\u4ef6\u7684\u5185\u5bb9\u4e0e\u5c5e\u60273.2 ls -a\u3001ls -l \u4e0e ls -d3.3 \u957f\u683c\u5f0f\u5b57\u6bb5\u4e0e\u6587\u4ef6\u7c7b\u578b4. \u76ee\u5f55\u521b\u5efa\u4e0e\u6587\u672c\u5199\u51654.1 mkdir \u4e0e touch4.2 echo \u4e0e\u8f93\u51fa\u91cd\u5b9a\u54114.3 cat \u4e0e\u56fa\u5b9a\u7ec3\u4e60\u6587\u672c5. \u6587\u4ef6\u590d\u5236\u3001\u79fb\u52a8\u4e0e\u5220\u96645.1 cp \u4e0e\u76ee\u6807\u8def\u5f845.2 m<\/p>\n","protected":false},"author":2,"featured_media":117555,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[13178,868,58],"topic":[],"class_list":["post-117575","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-1024---","tag-868","tag-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux \u57fa\u7840\u6307\u4ee4\u4e0e\u6587\u4ef6\u64cd\u4f5c - \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\/117575.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux \u57fa\u7840\u6307\u4ee4\u4e0e\u6587\u4ef6\u64cd\u4f5c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u76ee\u5f551. Linux\u3001\u8fdc\u7a0b\u767b\u5f55\u4e0e\u547d\u4ee4\u683c\u5f0f1.1 Shell \u4e0e\u547d\u4ee4\u7684\u6267\u884c1.2 \u7ec3\u4e60\u76ee\u5f552. \u8def\u5f84\u4e0e\u5de5\u4f5c\u76ee\u5f552.1 \u5f53\u524d\u7528\u6237\u4e0e\u5f53\u524d\u4f4d\u7f6e2.2 \u7edd\u5bf9\u8def\u5f84\u4e0e\u76f8\u5bf9\u8def\u5f842.3 \u76ee\u5f55\u5207\u63623. \u6587\u4ef6\u5c5e\u6027\u4e0e\u76ee\u5f55\u5217\u88683.1 \u6587\u4ef6\u7684\u5185\u5bb9\u4e0e\u5c5e\u60273.2 ls -a\u3001ls -l \u4e0e ls -d3.3 \u957f\u683c\u5f0f\u5b57\u6bb5\u4e0e\u6587\u4ef6\u7c7b\u578b4. \u76ee\u5f55\u521b\u5efa\u4e0e\u6587\u672c\u5199\u51654.1 mkdir \u4e0e touch4.2 echo \u4e0e\u8f93\u51fa\u91cd\u5b9a\u54114.3 cat \u4e0e\u56fa\u5b9a\u7ec3\u4e60\u6587\u672c5. \u6587\u4ef6\u590d\u5236\u3001\u79fb\u52a8\u4e0e\u5220\u96645.1 cp \u4e0e\u76ee\u6807\u8def\u5f845.2 m\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/117575.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-24T18:49:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184933-6adcfdbdd5741.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\/117575.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/117575.html\",\"name\":\"Linux \u57fa\u7840\u6307\u4ee4\u4e0e\u6587\u4ef6\u64cd\u4f5c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-24T18:49:40+00:00\",\"dateModified\":\"2026-10-24T18:49:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/117575.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/117575.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/117575.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux \u57fa\u7840\u6307\u4ee4\u4e0e\u6587\u4ef6\u64cd\u4f5c\"}]},{\"@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":"Linux \u57fa\u7840\u6307\u4ee4\u4e0e\u6587\u4ef6\u64cd\u4f5c - \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\/117575.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux \u57fa\u7840\u6307\u4ee4\u4e0e\u6587\u4ef6\u64cd\u4f5c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u76ee\u5f551. Linux\u3001\u8fdc\u7a0b\u767b\u5f55\u4e0e\u547d\u4ee4\u683c\u5f0f1.1 Shell \u4e0e\u547d\u4ee4\u7684\u6267\u884c1.2 \u7ec3\u4e60\u76ee\u5f552. \u8def\u5f84\u4e0e\u5de5\u4f5c\u76ee\u5f552.1 \u5f53\u524d\u7528\u6237\u4e0e\u5f53\u524d\u4f4d\u7f6e2.2 \u7edd\u5bf9\u8def\u5f84\u4e0e\u76f8\u5bf9\u8def\u5f842.3 \u76ee\u5f55\u5207\u63623. \u6587\u4ef6\u5c5e\u6027\u4e0e\u76ee\u5f55\u5217\u88683.1 \u6587\u4ef6\u7684\u5185\u5bb9\u4e0e\u5c5e\u60273.2 ls -a\u3001ls -l \u4e0e ls -d3.3 \u957f\u683c\u5f0f\u5b57\u6bb5\u4e0e\u6587\u4ef6\u7c7b\u578b4. \u76ee\u5f55\u521b\u5efa\u4e0e\u6587\u672c\u5199\u51654.1 mkdir \u4e0e touch4.2 echo \u4e0e\u8f93\u51fa\u91cd\u5b9a\u54114.3 cat \u4e0e\u56fa\u5b9a\u7ec3\u4e60\u6587\u672c5. \u6587\u4ef6\u590d\u5236\u3001\u79fb\u52a8\u4e0e\u5220\u96645.1 cp \u4e0e\u76ee\u6807\u8def\u5f845.2 m","og_url":"https:\/\/www.wsisp.com\/helps\/117575.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-24T18:49:40+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261024184933-6adcfdbdd5741.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\/117575.html","url":"https:\/\/www.wsisp.com\/helps\/117575.html","name":"Linux \u57fa\u7840\u6307\u4ee4\u4e0e\u6587\u4ef6\u64cd\u4f5c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-24T18:49:40+00:00","dateModified":"2026-10-24T18:49:40+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/117575.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/117575.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/117575.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux \u57fa\u7840\u6307\u4ee4\u4e0e\u6587\u4ef6\u64cd\u4f5c"}]},{"@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\/117575","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=117575"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/117575\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/117555"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=117575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=117575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=117575"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=117575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}