{"id":36364,"date":"2025-05-09T13:01:11","date_gmt":"2025-05-09T05:01:11","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/36364.html"},"modified":"2025-05-09T13:01:11","modified_gmt":"2025-05-09T05:01:11","slug":"%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88linux%ef%bc%89%e5%b8%b8%e8%a7%81%e5%91%bd%e4%bb%a4%ef%bc%88%e4%b8%aa%e4%ba%ba%e6%94%b6%e8%97%8f%e7%89%88%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/36364.html","title":{"rendered":"\u670d\u52a1\u5668\uff08Linux\uff09\u5e38\u89c1\u547d\u4ee4\uff08\u4e2a\u4eba\u6536\u85cf\u7248\uff09"},"content":{"rendered":"<h2><span style=\"color:#fe2c24\">\u4e00\u3001Linux\u76f8\u5173\u7684\u5185\u5bb9<\/span><\/h2>\n<h4><span style=\"color:#9c8ec1\">1\u3001\u5173\u4e8e\u76ee\u5f55\u7ed3\u6784<\/span><\/h4>\n<p>\u00a0Windows\u53ef\u6709\u591a\u4e2a\u9876\u7ea7\u76ee\u5f55&#xff0c;\u4f46Linux\u53ea\u6709\u4e00\u4e2a\u9876\u7ea7\u76ee\u5f55&#xff1a;\u6839\u76ee\u5f55\u201c\/ \u201d&#xff0c;\u6240\u6709\u7684\u6587\u4ef6\u90fd\u5728\u5b83\u4e0b\u9762<\/p>\n<p>\u8def\u5f84\u4e4b\u95f4\u7684\u5c42\u7ea7\u5173\u7cfb&#xff1a;Windows\u7528&#xff1a;\\\\ \u00a0\u8868\u793a&#xff1b;Linux\u7528&#xff1a;\/ \u00a0\u8868\u793a<\/p>\n<p>HOME\u76ee\u5f55&#xff1a;\u6bcf\u4e2aLinux\u64cd\u4f5c\u7528\u6237\u5728Linux\u7cfb\u7edf\u7684\u4e2a\u4eba\u8d26\u6237\u76ee\u5f55&#xff0c;\u4e00\u822c\u8def\u5f84\u4e3a\/home\/\u7528\u6237\u540d<\/p>\n<p>\u4e00\u822c\u767b\u9646\u4e0a\u670d\u52a1\u5668\u6216\u8005\u96c6\u7fa4\u65f6&#xff0c;\u9ed8\u8ba4\u6240\u5904\u7684\u76ee\u5f55\u4e3a\u7528\u6237\u7684\u4e2a\u4ebaHOME\u76ee\u5f55<\/p>\n<p>\u5982\u679c\u670d\u52a1\u5668\u6216\u8005\u96c6\u7fa4\u6709\u516c\u5171\u7684\u8f6f\u4ef6\u9700\u8981\u4f7f\u7528&#xff0c;\u5219\u9700\u8981\u8fd4\u56de\u5230\u6839\u76ee\u5f55\u4e0b\u53bb\u627e<\/p>\n<p>\u76f8\u5bf9\u8def\u5f84\u548c\u7edd\u5bf9\u8def\u5f84&#xff1a;<\/p>\n<p>\u7edd\u5bf9\u8def\u5f84&#xff1a;\u4ee5<span style=\"color:#38d8f0\">\u6839\u76ee\u5f55\u4e3a\u8d77\u70b9<\/span>&#xff0c;\u63cf\u8ff0\u8def\u5f84\u7684\u4e00\u79cd\u5199\u6cd5&#xff0c;\u8def\u5f84\u63cf\u8ff0\u4ee5 \/ \u5f00\u5934<\/p>\n<p>\u5982&#xff1a;\u76ee\u524d\u5728\u4efb\u610f\u8def\u5f84\u4e0b&#xff0c;\u8fdb\u5165work\u76ee\u5f55\u4f7f\u7528\u7edd\u5bf9\u8def\u5f84 \u00a0\u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;cd\u00a0\/home\/software\/work<\/p>\n<\/p>\n<p>\u76f8\u5bf9\u8def\u5f84&#xff1a;\u4ee5<span style=\"color:#38d8f0\">\u5f53\u524d\u76ee\u5f55<\/span>\u4e3a\u8d77\u70b9&#xff0c;\u63cf\u8ff0\u8def\u5f84\u7684\u4e00\u79cd\u5199\u6cd5&#xff0c;\u8def\u5f84\u63cf\u8ff0\u65e0\u9700\u4ee5 \/ \u5f00\u5934<\/p>\n<p>\u5982&#xff1a;\u76ee\u524d\u6240\u5904\u4f4d\u7f6e\u4e3asoftware\u76ee\u5f55&#xff0c;\u8fdb\u5165work\u76ee\u5f55\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84&#xff1a;cd\u00a0software\/work<\/p>\n<p>\u7279\u6b8a\u8def\u5f84\u7b26&#xff1a;<\/p>\n<p>. \u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u8868\u793a\u5f53\u524d\u76ee\u5f55<\/p>\n<p>.. \u00a0 \u00a0 \u00a0 &#xff1a;\u8868\u793a\u4e0a\u4e00\u7ea7\u76ee\u5f55<\/p>\n<p>~ \u00a0 \u00a0 \u00a0 &#xff1a;\u8868\u793aHOME\u76ee\u5f55<\/p>\n<h4><span style=\"color:#9c8ec1\">2\u3001\u5404\u7c7b\u57fa\u7840\u547d\u4ee4<\/span><\/h4>\n<p>\u547d\u4ee4\u901a\u7528\u683c\u5f0f&#xff1a;commard [-options] [parameter]<\/p>\n<p>commard&#xff1a;\u547d\u4ee4\u672c\u8eab<\/p>\n<p>-options&#xff1a;\u547d\u4ee4\u7684\u4e00\u4e9b\u9009\u9879&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u9009\u9879\u63a7\u5236\u547d\u4ee4\u7684\u884c\u4e3a\u7ec6\u8282&#xff08;\u53ef\u9009&#xff0c;\u975e\u5fc5\u586b&#xff09;<\/p>\n<p>parameter&#xff1a;\u547d\u4ee4\u7684\u53c2\u6570&#xff0c;\u591a\u6570\u7528\u4e8e\u547d\u4ee4\u7684\u6307\u5411\u76ee\u6807\u7b49&#xff08;\u53ef\u9009&#xff0c;\u975e\u5fc5\u586b&#xff09;<\/p>\n<p>ls\u547d\u4ee4&#xff1a;ls \u00a0[-a \u00a0-l \u00a0-h] \u00a0[Linux\u8def\u5f84] \u00a0 &#xff08;\u4ee5\u4e00\u5b9a\u5f62\u5f0f\u663e\u793a\u8def\u5f84\u76ee\u5f55\u91cc\u7684\u5185\u5bb9&#xff09;<\/p>\n<p>ls \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u4ee5\u5e73\u94fa\u5f62\u5f0f&#xff0c;\u5217\u51fa<span style=\"color:#38d8f0\">\u5f53\u524d\u8def\u5f84\u76ee\u5f55<\/span>\u4e0b\u5305\u542b\u7684\u5185\u5bb9<\/p>\n<p>ls \u00a0[Linux\u8def\u5f84]&#xff1a;\u4ee5\u5e73\u94fa\u5f62\u5f0f&#xff0c;\u5217\u51fa<span style=\"color:#38d8f0\"> [Linux\u8def\u5f84] \u76ee\u5f55<\/span>\u4e0b\u7684\u5185\u5bb9<\/p>\n<p>-a &#xff1a;\u8868\u793aall\u7684\u610f\u601d&#xff0c;\u5217\u51fa\u5168\u90e8\u6587\u4ef6&#xff08;\u5305\u62ec\u9690\u85cf\u6587\u4ef6\/\u6587\u4ef6\u5939\u3010\u4ee5 . \u5f00\u5934\u7684\u6587\u4ef6\u3011&#xff09;<\/p>\n<p>-l \u00a0&#xff1a;\u8868\u793a\u4ee5\u5217\u8868&#xff08;\u7ad6\u5411\u6392\u5217&#xff09;\u5f62\u5f0f\u5c55\u793a\u5185\u5bb9&#xff0c;\u5e76\u663e\u793a\u66f4\u591a\u4fe1\u606f<\/p>\n<p>-h &#xff1a;\u8868\u793a\u4ee5\u6613\u4e8e\u9605\u8bfb\u7684\u5f62\u5f0f&#xff0c;\u5217\u51fa\u6587\u4ef6\u7684\u5927\u5c0f&#xff0c;\u5982K\u3001M\u3001G&#xff08;\u8be5\u9009\u9879\u5fc5\u987b\u548c -l \u4e00\u8d77\u4f7f\u7528&#xff09;<\/p>\n<p>\u547d\u4ee4\u7684\u9009\u9879\u53ef\u4ee5\u7ec4\u5408\u4f7f\u7528&#xff0c;\u4f8b\u5982&#xff1a;ls -alh \/ ls -a -l -h\/ ls -lha\u00a0(\u4e09\u79cd\u5199\u6cd5\u5747\u53ef)<\/p>\n<p>du\u547d\u4ee4&#xff1a;\u67e5\u770b\u6587\u4ef6\u5185\u5b58\u5927\u5c0f<\/p>\n<p>-s \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#xff1a;&#8211;summarize \u8ba1\u7b97\u6587\u4ef6\u603b\u5185\u5b58<\/p>\n<p>-h \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#xff1a;&#8211;human-readable \u4ee5\u4eba\u53ef\u8bfb\u7684\u683c\u5f0f\u8f93\u51fa\u5927\u5c0f(\u4f8b\u5982&#xff1a;\u00a01K \u00a0234M \u00a02G)<\/p>\n<p>du \u00a0\u6587\u4ef6\u76ee\u5f55 \u00a0-sh&#xff1a;\u67e5\u770b\u6587\u4ef6\u76ee\u5f55\u603b\u7684\u5185\u5b58\u5927\u5c0f&#xff08;\u53c2\u6570\u5728\u524d\u5728\u540e\u90fd\u53ef\u4ee5&#xff09;<\/p>\n<p>du \u00a0\u6587\u4ef6\u76ee\u5f55 \u00a0 \u00a0-h&#xff1a;\u9012\u5f52\u663e\u793a\u6bcf\u4e2a\u6587\u4ef6\u7684\u5185\u5b58\u5927\u5c0f&#xff08;\u53c2\u6570\u5728\u524d\u5728\u540e\u90fd\u53ef\u4ee5&#xff09;<\/p>\n<p>cd\u547d\u4ee4&#xff1a;cd\u00a0\u00a0[Linux\u8def\u5f84]&#xff08;\u5207\u6362\u5de5\u4f5c\u76ee\u5f55<span style=\"color:#ed7976\">C<\/span>hange <span style=\"color:#ed7976\">D<\/span>irectory&#xff09;<\/p>\n<p>cd \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0: \u00a0 \u8868\u793a\u56de\u5230\u7528\u6237\u7684HOME\u76ee\u5f55&#xff08;\u4e0d\u52a0\u53c2\u6570&#xff09;(\u8be5\u547d\u4ee4\u7b49\u4e8e&#xff1a;cd ~)<\/p>\n<p>cd\u00a0\u00a0[Linux\u8def\u5f84]&#xff1a;\u8868\u793a\u5207\u6362\u5230\u3010Linux\u8def\u5f84\u3011\u4e0b&#xff08;\u52a0\u4e0a\u53c2\u6570&#xff09;<\/p>\n<p>cd .\/A \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u8868\u793a\u5207\u6362\u5230\u5f53\u524d\u76ee\u5f55\u4e0b\u7684A\u6587\u4ef6\u5939\u4e2d&#xff08;\u8be5\u547d\u4ee4\u7b49\u4e8e&#xff1a;cd A&#xff09;<\/p>\n<p>cd .. \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \u00a0\u8fd4\u56de\u4e0a\u4e00\u7ea7\u76ee\u5f55&#xff08; .. \u8868\u793a\u4e0a\u4e00\u7ea7\u76ee\u5f55&#xff09;<\/p>\n<p>cd ..\/.. \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;\u8fd4\u56de\u4e0a\u4e8c\u7ea7\u76ee\u5f55<\/p>\n<p>cd \/ \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0: \u00a0\u8fd4\u56de\u6839\u76ee\u5f55<\/p>\n<p>pwd\u547d\u4ee4&#xff1a;pwd&#xff08;\u65e0\u9009\u9879&#xff0c;\u65e0\u53c2\u6570&#xff0c;\u8868\u793a\u67e5\u770b\u5e76\u663e\u793a\u5f53\u524d\u5de5\u4f5c\u8def\u5f84<span style=\"color:#ed7976\">P<\/span>rint <span style=\"color:#ed7976\">W<\/span>ork <span style=\"color:#ed7976\">D<\/span>irectory&#xff09;<\/p>\n<p>mkdir\u547d\u4ee4&#xff1a;mkdir \u00a0[-m -v -p] \u00a0Linux\u8def\u5f84&#xff08;\u521b\u5efa\u65b0\u7684\u76ee\u5f55\/\u6587\u4ef6\u5939<span style=\"color:#ed7976\">M<\/span>a<span style=\"color:#ed7976\">k<\/span>e <span style=\"color:#ed7976\">D<\/span><span style=\"color:#ed7976\">ir<\/span>ectory&#xff09;<\/p>\n<p>mkdir \u00a0\u6587\u4ef6\u5939\u540d \u00a0 \u00a0\u00a0 \u00a0 \u00a0 \u00a0: \u00a0\u5728<span style=\"color:#38d8f0\">\u5f53\u524d\u76ee\u5f55<\/span>\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201c\u6587\u4ef6\u5939\u540d\u201d\u7684\u6587\u4ef6\u5939&#xff0c;\u8fd9\u91cc\u4e3a\u76f8\u5bf9\u8def\u5f84<\/p>\n<p>mkdir \/home\/\u6587\u4ef6\u5939\u540d&#xff1a;\u5728<span style=\"color:#38d8f0\">home\u76ee\u5f55<\/span>\u4e0b\u521b\u4e00\u4e2a\u540d\u4e3a\u201c\u6587\u4ef6\u5939\u540d\u201d\u7684\u6587\u4ef6\u5939&#xff0c;\u8fd9\u91cc\u4e3a\u7edd\u5bf9\u8def\u5f84<\/p>\n<p>mkdir \u540d1 \u00a0\u540d2 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u5f53\u524d\u76ee\u5f55\u4e0b\u521b\u5efa\u591a\u4e2a\u6587\u4ef6\u5939<\/p>\n<p>-m \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u8bbe\u5b9a\u6743\u9650\u6a21\u5f0f&#xff0c;\u540e\u9762\u8ddf777\u4ee3\u8868\u6709\u8bfb\u5199\u6267\u884crwx\u6743\u9650<\/p>\n<p>-v \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;\u521b\u5efa\u65b0\u76ee\u5f55\u4f1a\u8fd4\u56de\u4fe1\u606f<\/p>\n<p>-p\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u8868\u793a\u81ea\u52a8\u521b\u5efa\u4e0d\u5b58\u5728\u7684\u7236\u76ee\u5f55&#xff0c;\u9002\u7528\u4e8e\u521b\u5efa\u8fde\u7eed\u591a\u5c42\u7ea7\u7684\u76ee\u5f55<\/p>\n<p>mkdir -p A\/B\u00a0 \u00a0 \u00a0&#xff1a;A,B\u6587\u4ef6\u5939\u672c\u6765\u662f\u6ca1\u6709\u7684&#xff0c;\u901a\u8fc7-p\u9009\u9879\u53ef\u4ee5\u521b\u5efa\u4e0d\u5b58\u5728\u7684\u7236\u76ee\u5f55<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\u8fd9\u91cc\u8868\u793a\u5f53\u524d\u76ee\u5f55\u4e0b\u521b\u5efa\u4e86\u4e00\u4e2aA\u6587\u4ef6\u5939&#xff0c;\u5728A\u6587\u4ef6\u5939\u4e0b\u53c8\u521b\u5efa\u4e86B\u6587\u4ef6\u5939<\/p>\n<p>&#xff08;\u521b\u5efa\u6587\u4ef6\u5939\u9700\u8981\u5728\u81ea\u5df1\u7684HOME\u76ee\u5f55\u4e0b&#xff0c;\u5176\u4ed6\u8def\u5f84\u4e0b\u4f1a\u88ab\u9650\u5236\u6743\u9650&#xff09;<\/p>\n<p>rmdir\u547d\u4ee4&#xff1a;rmdir &lt;\u6587\u4ef6\u5939\u540d&gt; \u00a0&#xff08;\u5220\u9664\u6587\u4ef6\u5939&#xff09;<\/p>\n<p>mv\u547d\u4ee4&#xff1a;mv \u6e90\u6587\u4ef6\u540d\u00a0\u00a0\u76ee\u6807\u6587\u4ef6\u540d<\/p>\n<p>\u4e3a\u6587\u4ef6\u6216\u8005\u76ee\u5f55\u6539\u540d&#xff0c;\u6216\u8005\u5c06\u6587\u4ef6\u7531\u4e00\u4e2a\u76ee\u5f55\u79fb\u52a8\u5230\u53e6\u4e00\u4e2a\u76ee\u5f55\u4e2d<\/p>\n<p>mv \u00a0 \/usr\/A \u00a0 \u00a0 \u00a0 \/usr\/B \u00a0 \u00a0 \u00a0&#xff1a;\u79fb\u52a8A\u76ee\u5f55\u5230B\u76ee\u5f55&#xff08;\u6216\u8005\u5c06A\u76ee\u5f55\u91cd\u547d\u540d\u4e3aB\u76ee\u5f55&#xff09;<\/p>\n<p>mv \u00a0 \/usr\/A\/* \u00a0 \u00a0\/usr\/B \u00a0 \u00a0 \u00a0 : \u00a0\u79fb\u52a8A\u76ee\u5f55\u91cc\u7684\u5168\u90e8\u5185\u5bb9\u5230B\u76ee\u5f55\u4e0b<\/p>\n<p>cp\u547d\u4ee4&#xff1a;cp\u00a0\u6e90\u6587\u4ef6\u540d\u00a0\u00a0\u76ee\u6807\u6587\u4ef6\u540d &#xff08;\u590d\u5236\u6587\u4ef6\u6216\u8005\u76ee\u5f55&#xff09;<\/p>\n<p>cp A\u7684\u76ee\u5f55\/. \u00a0B\u7684\u76ee\u5f55\/ &#xff1a;\u590d\u5236A\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u5230B\u76ee\u5f55\u4e0b<\/p>\n<p>rm\u547d\u4ee4&#xff1a;rm [-r \u00a0-f] \u00a0\u6587\u4ef6\u540d \u00a0 &#xff08;\u5220\u9664\u6587\u4ef6\u6216\u8005\u76ee\u5f55&#xff09;<\/p>\n<p>-r \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;\u6307\u793a\u5c06\u53c2\u6570\u4e2d\u5217\u51fa\u7684\u5168\u90e8\u76ee\u5f55\u548c\u5b50\u76ee\u5f55\u9012\u5f52\u5220\u9664<\/p>\n<p>-f \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;\u5c31\u662fforce\u7684\u610f\u601d&#xff0c;\u5ffd\u89c6\u4e0d\u5b58\u5728\u7684\u6587\u4ef6&#xff0c;\u4e0d\u7ed9\u4e88\u63d0\u793a<\/p>\n<p>rm -rf \u6587\u4ef6\u5939\u540d \u00a0 \u00a0: \u00a0\u5220\u9664\u6587\u4ef6\u5939\u53ca\u5176\u5185\u5bb9&#xff0c;\u4e0d\u63d0\u793a\u8b66\u544a\u4fe1\u606f<\/p>\n<p>grep\u547d\u4ee4&#xff1a;grep [-v\u00a0 -n -i -r -l -c]\u00a0 \u5f85\u67e5\u627e\u6307\u5b9a\u6837\u5f0f\u5185\u5bb9\u00a0 \u6587\u4ef6\u540d\/\u76ee\u5f55<\/p>\n<p>\u7528\u4e8e\u67e5\u627e\u5185\u5bb9\u5305\u542b\u6307\u5b9a\u6837\u5f0f\u7684\u6587\u4ef6&#xff08;\u91cd\u70b9\u662f\u67e5\u627e\u6587\u4ef6\u5185\u7684\u5185\u5bb9&#xff0c;\u800c\u4e0d\u662f\u5728\u76ee\u5f55\u4e2d\u627e\u6587\u4ef6&#xff09;<\/p>\n<p>-v\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;\u663e\u793a\u4e0d\u5305\u542b\u5339\u914d\u6587\u672c\u7684\u6240\u6709\u884c<\/p>\n<p>-n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u663e\u793a\u5339\u914d\u884c\u7684\u884c\u53f7\u548c\u5185\u5bb9<\/p>\n<p>-i\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0&#xff1a;\u5ffd\u7565\u5927\u5c0f\u5199\u8fdb\u884c\u5339\u914d<\/p>\n<p>-r\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;\u9012\u5f52\u67e5\u627e\u5b50\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6<\/p>\n<p>-l\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;\u53ea\u6253\u5370\u5339\u914d\u7684\u6587\u4ef6\u540d<\/p>\n<p>-c\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u53ea\u6253\u5370\u5339\u914d\u7684\u884c\u6570<\/p>\n<p>grep -r\u00a0 -n ego .\/\u00a0 &#xff1a;\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u9012\u5f52\u67e5\u627e\u6587\u4ef6\u4e2d\u6709ego\u7684\u6587\u4ef6&#xff0c;\u5e76\u6253\u5370\u6587\u4ef6\u4e2dego\u6240\u5728\u884c\u548c\u5185\u5bb9<span style=\"color:#79c6cd\">&#xff08;\u53ef\u80fd\u8f93\u51fa&#xff1a;.\/A\/a.txt:4:am.<\/span><span style=\"color:#ed7976\">ego<\/span><span style=\"color:#79c6cd\">s&#xff09;<\/span><\/p>\n<p>grep ego *.py\u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u67e5\u627e\u540e\u7f00\u540d\u4e3apy\u7684\u6587\u4ef6\u4e2d\u5305\u542bego\u5b57\u7b26\u4e32\u7684\u6587\u4ef6&#xff0c;\u5e76\u6253\u5370\u8be5\u5b57\u7b26\u4e32\u7684\u884c<span style=\"color:#79c6cd\">&#xff08;\u53ef\u80fd\u8f93\u51fa&#xff1a;.\/a1.py:s<\/span><span style=\"color:#ed7976\">ego<\/span><span style=\"color:#79c6cd\">o.l&#xff09;<\/span><\/p>\n<p>find\u547d\u4ee4&#xff1a;find\u00a0 \u67e5\u627e\u8def\u5f84\u00a0 [-name\u00a0 -user]\u00a0 \u67e5\u627e\u6587\u4ef6\u540d<\/p>\n<p>-name\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;\u6309\u6587\u4ef6\u540d\u67e5\u627e&#xff0c;\u652f\u6301\u901a\u7528\u7b26*<\/p>\n<p>-user\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;\u6309\u6587\u4ef6\u6240\u6709\u8005\u67e5\u627e<\/p>\n<p>find .\/ -name a.txt\u00a0 \u00a0 \u00a0 &#xff1a;\u5c06\u5f53\u524d\u76ee\u5f55\u53ca\u5176\u5b50\u76ee\u5f55\u4e0b\u6240\u6709\u6587\u4ef6\u540d\u4e3aa.txt\u7684\u6587\u4ef6\u5217\u51fa\u6765<\/p>\n<p>find .\/ -name &#034; *.py&#034;\u00a0 \u00a0&#xff1a;\u5c06\u5f53\u524d\u76ee\u5f55\u53ca\u5176\u5b50\u76ee\u5f55\u4e0b\u6240\u6709\u6587\u4ef6\u540e\u7f00\u540d\u4e3a.py\u7684\u6587\u4ef6\u5217\u51fa\u6765<\/p>\n<p>find .\/ -user qname\u00a0 \u00a0 &#xff1a;\u5728\u5f53\u524d\u76ee\u5f55\u53ca\u5176\u5b50\u76ee\u5f55\u4e0b\u67e5\u627e\u7531qname\u521b\u5efa\u7684\u6240\u6709\u6587\u4ef6&#xff0c;\u5e76\u5217\u51fa\u6765<\/p>\n<p>head\u547d\u4ee4&#xff1a;head [-c -n]\u00a0 N \u6587\u4ef6\u540d &#xff08;\u9ed8\u8ba4N&#061;10&#xff0c;\u67e5\u770b\u6587\u4ef6\u7684\u5f00\u5934\u90e8\u5206\u5185\u5bb9&#xff09;<\/p>\n<p>-c N\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u663e\u793a\u6587\u4ef6\u524dN\u4e2a\u5b57\u8282\u5185\u5bb9<\/p>\n<p>-n N\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u663e\u793a\u6587\u4ef6\u524dN\u884c\u5185\u5bb9<\/p>\n<p>head a.txt\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;\u9ed8\u8ba4\u67e5\u770ba.txt\u524d10\u884c\u5185\u5bb9<\/p>\n<p>head -n 5 a.txt &#061; head -5 a.txt &#xff1a;\u67e5\u770ba.txt\u6587\u4ef6\u524d5\u884c\u5185\u5bb9<\/p>\n<p>tail\u547d\u4ee4&#xff1a;tail [-n -f]\u00a0 [&#043;N -N] \u6587\u4ef6\u540d &#xff08;\u9ed8\u8ba4\u663e\u793a\u6587\u4ef6\u768410\u884c\u5c3e\u90e8&#xff09;<\/p>\n<p>-n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u663e\u793a\u6587\u4ef6\u5c3e\u90e8\u5185\u5bb9<\/p>\n<p>-f\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;\u5982\u679c\u6587\u4ef6\u5185\u5bb9\u88ab\u8ffd\u52a0&#xff0c;\u4f1a\u7ee7\u7eed\u663e\u793a\u88ab\u8ffd\u52a0\u7684\u5185\u5bb9&#xff0c;\u76f4\u5230\u952e\u5165Ctrl &#043;C<\/p>\n<p>tail -n &#043;2 a.txt\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u663e\u793aa.txt\u6587\u4ef6\u7b2c2\u884c\u5f00\u59cb\u5230\u5c3e\u90e8\u7684\u6240\u6709\u5185\u5bb9<\/p>\n<p>tail -n -2 a.txt\u00a0 &#061; tail -2 a.txt\u00a0&#xff1a;\u663e\u793aa.txt\u6587\u4ef6\u6700\u540e2\u884c\u7684\u5185\u5bb9<\/p>\n<p>wc\u547d\u4ee4&#xff1a;wc [-c -w -l -L]\u00a0 \u6587\u4ef6\u540d\u00a0 &#xff08;\u7edf\u8ba1\u8ba1\u7b97\u6587\u4ef6\u7684\u5b57\u8282\u6570\u3001\u5b57\u6570\u3001\u884c\u6570&#xff09;<\/p>\n<p>-c\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u7edf\u8ba1\u6587\u4ef6\u5b57\u8282\u6570<\/p>\n<p>-w\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u7edf\u8ba1\u6587\u4ef6\u5355\u8bcd\u6570<\/p>\n<p>-l\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u7edf\u8ba1\u6587\u4ef6\u7684\u884c\u6570<\/p>\n<p>-L\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;\u7edf\u8ba1\u6587\u4ef6\u6700\u957f\u884c\u6570\u7684\u957f\u5ea6<\/p>\n<p>wc -c a.txt &#xff1a;\u8f93\u51faa.txt\u6587\u4ef6\u7684\u603b\u5b57\u8282\u6570<\/p>\n<p>bc\u547d\u4ee4&#xff1a;\u4efb\u610f\u7cbe\u5ea6\u8ba1\u7b97\u5668\u8bed\u8a00&#xff0c;\u5b83\u7c7b\u4f3c\u57fa\u672c\u7684\u8ba1\u7b97\u5668, \u4f7f\u7528\u8fd9\u4e2a\u8ba1\u7b97\u5668\u53ef\u4ee5\u505a\u57fa\u672c\u7684\u6570\u5b66\u8fd0\u7b97<\/p>\n<p>1\u3001\u76f4\u63a5\u8ba1\u7b97<\/p>\n<p><span style=\"color:#ed7976\">$ bc bc 1.06.95 Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type &#096;warranty&#039;. 2&#043;3 5<\/span><\/p>\n<p>2\u3001\u901a\u8fc7\u7ba1\u9053\u8ba1\u7b97<\/p>\n<p><span style=\"color:#ed7976\">$ echo &#034;15&#043;5&#034; | bc\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0#\u8ba1\u7b97\u52a0\u6cd5 20<\/span><\/p>\n<p><span style=\"color:#ed7976\">$ echo &#039;scale&#061;2; (2.777 &#8211; 1.4744)\/1&#039; | bc\u00a0 \u00a0 \u00a0 #\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570 1.30<\/span> <span style=\"color:#ed7976\">$ echo &#034;10^10&#034; | bc\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 #\u8ba1\u7b97\u5e73\u65b9 10000000000 $ echo &#034;sqrt(100)&#034; | bc\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 #\u8ba1\u7b97\u5e73\u65b9\u6839 10<\/span><\/p>\n<\/p>\n<p>\u6587\u4ef6\u6253\u5305\u3001\u3010\u538b\u7f29\u3001\u89e3\u538b\u7f29\u3011\u547d\u4ee4&#xff1a;tar \u3001\u3010gzip\u3001gunzip\u3001bzip2\u3001bunzip2\u3011<\/p>\n<p>1\u3001\u6253\u5305tar&#xff1a;\u5c06\u591a\u4e2a\u6587\u4ef6\u53d8\u4e3a\u4e00\u4e2a\u603b\u7684\u6587\u4ef6&#xff1a; tar [-c -v -f -z -j -x] \u6587\u4ef6\u540d<\/p>\n<p>-c\u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u521b\u5efa\u65b0\u7684\u6863\u6848\u6587\u4ef6<\/p>\n<p>-v\u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u8be6\u7ec6\u62a5\u544atar\u5904\u7406\u7684\u6587\u4ef6\u4fe1\u606f<\/p>\n<p>-f\u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;\u4f7f\u7528\u6863\u6848\u6587\u4ef6\u6216\u8bbe\u5907&#xff0c;\u901a\u5e38\u5fc5\u9009<\/p>\n<p>-z\u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u8c03\u7528gzip\u547d\u4ee4\u6765\u538b\u7f29\u6216\u89e3\u538b\u7f29\u6587\u4ef6<\/p>\n<p>-j\u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;\u8c03\u7528bzip2\u547d\u4ee4\u6765\u538b\u7f29\u6216\u89e3\u538b\u7f29\u6587\u4ef6<\/p>\n<p>-x\u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u4ece\u5907\u4efd\u6587\u4ef6\u4e2d\u53d6\u51fa\u6587\u4ef6<\/p>\n<p>tar\u00a0 -cvf\u00a0 \u00a0D.tar\u00a0 .\/A\u00a0 \u00a0\u00a0&#xff1a;\u5c06A\u6587\u4ef6\u5939\u6253\u5305\u4e3a\u4e00\u4e2a\u603b\u7684\u6587\u4ef6&#xff0c;\u5e76\u547d\u540d\u4e3aD.tar<\/p>\n<p>tar\u00a0 -xvf\u00a0 \u00a0D.tar\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#xff1a;\u5c06D.tar\u89e3\u5f00\u5230\u5f53\u524d\u76ee\u5f55\u4e0b<\/p>\n<p>gzip\u00a0 \u00a0D.tar\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;\u5c06\u6253\u5305\u597d\u7684\u6587\u4ef6D.tar\u8fdb\u884c\u538b\u7f29&#xff0c;\u751f\u6210\u6269\u5c55\u540d\u4e3a.gz\u540e\u7f00\u7684\u6587\u4ef6<\/p>\n<p>bzip2 D.tar\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\u00a0 &#xff1a;\u5c06\u6253\u5305\u597d\u7684\u6587\u4ef6D.tar\u8fdb\u884c\u538b\u7f29&#xff0c;\u751f\u6210\u6269\u5c55\u540d\u4e3a.bz2\u540e\u7f00\u7684\u6587\u4ef6<\/p>\n<p>tar\u00a0 -zxvf\u00a0 D.tar.gz\u00a0 \u00a0 \u00a0&#xff1a;\u89e3\u538b\u7f29 D.tar.gz\u6587\u4ef6<\/p>\n<p>tar\u00a0 -jxvf\u00a0 \u00a0D.tar.bz2\u00a0 \u00a0 &#xff1a;\u89e3\u538b\u7f29 D.tar.bz2\u6587\u4ef6<\/p>\n<\/p>\n<p>2\u3001\u538b\u7f29gzip\u3001bzip2\u00a0 | |\u00a0 \u89e3\u538b\u7f29gunzip\u3001bunzip2 &#xff1a;\u5c06\u5927\u6587\u4ef6\u538b\u7f29\u4e3a\u5c0f\u6587\u4ef6\/\u5c0f\u6587\u4ef6\u89e3\u538b\u7f29\u4e3a\u5927\u6587\u4ef6<\/p>\n<ul>\n<li>\u6587\u4ef6\u540e\u7f00\u4e3a.gz&#xff0c;\u4f7f\u7528gzip [-d -r -t] \/ gunzip \u6587\u4ef6\u540d<span style=\"color:#ed7976\">&#xff08;\u4f7f\u7528\u8be5\u547d\u4ee4\u538b\u7f29\u6587\u4ef6\u540e&#xff0c;\u539f\u6587\u4ef6\u81ea\u52a8\u5220\u9664&#xff0c;\u4e00\u6b21\u53ea\u80fd\u538b\u7f29\u4e00\u4e2a\u6587\u4ef6&#xff09;<\/span><\/li>\n<\/ul>\n<p>-d\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;\u5bf9\u6587\u4ef6\u8fdb\u884c\u89e3\u538b\u7f29\u00a0gzip -d &#061; gunzip<\/p>\n<p>gzip -d a.txt.gz &#061; gunzip a.txt.gz\u00a0 &#xff1a;\u5bf9a.txt.gz\u6587\u4ef6\u89e3\u538b\u7f29<\/p>\n<ul>\n<li>\u6587\u4ef6\u540e\u7f00\u4e3a.bz2&#xff0c;\u4f7f\u7528bzip2 [-d -r -k -z -t] \/ bunzip2 \u6587\u4ef6\u540d<span style=\"color:#ed7976\">&#xff08;\u4f7f\u7528\u8be5\u547d\u4ee4\u538b\u7f29\u6587\u4ef6\u540e&#xff0c;\u539f\u6587\u4ef6\u81ea\u52a8\u5220\u9664&#xff0c;\u4e00\u6b21\u53ea\u80fd\u538b\u7f29\u4e00\u4e2a\u6587\u4ef6&#xff09;<\/span><\/li>\n<\/ul>\n<p>-d\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;\u5bf9\u6587\u4ef6\u8fdb\u884c\u89e3\u538b\u7f29 bzip2 -d &#061; bunzip2<\/p>\n<p>-k\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;\u538b\u7f29\u6587\u4ef6\u5e76\u4fdd\u7559\u539f\u6587\u4ef6<\/p>\n<p>-z\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;\u5f3a\u5236\u8fdb\u884c\u538b\u7f29<\/p>\n<p>bzip2 -k a.txt &#xff1a;\u5bf9a.txt\u6587\u4ef6\u8fdb\u884c\u538b\u7f29&#xff0c;\u5e76\u4fdd\u7559\u539f\u6587\u4ef6<\/p>\n<p style=\"text-align:center\">\n<h2><span style=\"color:#fe2c24\">\u4e8c\u3001\u670d\u52a1\u5668\u76f8\u5173\u7684\u5185\u5bb9:<\/span><\/h2>\n<h5>1\u3001\u66f4\u6539\u666e\u901a\u7528\u6237\u767b\u5165\u76ee\u5f55<\/h5>\n<p>\u53c2\u8003\u6587\u7ae0Linux | \u4fee\u6539\u7528\u6237\u9ed8\u8ba4\u8def\u5f84:<\/p>\n<p>vi &#xff5e;\/.bashrc \u00a0 \u00a0 #\u8fdb\u5165.bashrc\u6587\u4ef6&#xff0c;\u5728\u6700\u540e\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9<\/p>\n<p><span style=\"color:#faa572\">cd \/\u60f3\u8981\u767b\u5165\u7684\u8def\u5f84\/ &#xff08;\u00a0\u4f8b\u5982&#xff1a;cd \u00a0\/spt\/newname\/\u00a0&#xff09;<\/span><\/p>\n<p>source \u00a0&#xff5e;\/.bashrc \u00a0#\u91cd\u65b0\u52a0\u8f7d\u767b\u5165<\/p>\n<h5>2\u3001\u5728\u4e24\u4e2a\u670d\u52a1\u5668\u95f4\u4f20\u6587\u4ef6<\/h5>\n<p>scp \u5f53\u524d\u670d\u52a1\u5668\u6587\u4ef6\u8def\u5f84 \/\u6587\u4ef6\u540d \u76ee\u6807\u670d\u52a1\u5668\u540d&#064;\u5730\u5740&#xff1a;\u76ee\u6807\u8def\u5f84&#xff08;\u79fb\u52a8\u76ee\u5f55\u9700\u8981\u52a0-r&#xff09;<\/p>\n<ul>\n<li>\u4f20\u9001\u670d\u52a1\u5668A\u91cc\u7684\u6587\u4ef6\/user\/temp\/a.txt\u5230\u670d\u52a1\u5668B(root&#064;127.22.45)\u7684\u8def\u5f84\/opt\/\u4e0b&#xff1a;<\/li>\n<\/ul>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0scp \u00a0\/user\/temp\/a.txt \u00a0 root&#064;127.22.45:\/opt\/<\/p>\n<ul>\n<li>\u4f20\u9001\u670d\u52a1\u5668A\u91cc\u7684\u6587\u4ef6\u5939\/user\/temp\u5230\u670d\u52a1\u5668B(root&#064;127.22.45)\u7684\u8def\u5f84\/opt\/\u4e0b&#xff1a;<\/li>\n<\/ul>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0scp<span style=\"color:#ed7976\">\u00a0 -r<\/span>\u00a0 \u00a0\/user\/temp \u00a0 root&#064;127.22.45:\/opt\/<\/p>\n<p>\u540e\u7eed\u9700\u8981\u8f93\u5165\u670d\u52a1\u5668B\u7684\u767b\u5165\u5bc6\u7801&#xff0c;\u6309enter\u952e\u5f00\u59cb\u4f20\u8f93<\/p>\n<h5>3\u3001\u4ece\u7f51\u9875\u4e0b\u8f7d\u6587\u4ef6<\/h5>\n<ul>\n<li>\u4ece\u7f51\u9875\u4e0b\u8f7d\u6587\u4ef6\u5230\u5f53\u524d\u76ee\u5f55&#xff1a;wget \u00a0 \u00a0 \u00a0&#034;\u7f51\u9875\u4e2d\u7684\u6587\u4ef6\u94fe\u63a5&#034;<\/li>\n<\/ul>\n<p><span style=\"color:#4da8ee\">&#xff08;\u4f8b\u5982\u4e0b\u8f7d\u5b89\u88c5\u5305&#xff1a;wget \u00a0 \u00a0 &#034;<span style=\"color:#4da8ee\"><span style=\"color:#4da8ee\"><span style=\"color:#4da8ee\">https:\/\/www.openmx-square.org\/bugfixed\/21Oct17\/README.txt<\/span><\/span><\/span>&#034;&#xff09;<\/span><\/p>\n<ul>\n<li>\u5c06\u6587\u4ef6\u4e0b\u8f7d\u5230\u6307\u5b9a\u76ee\u5f55\u4e0b&#xff1a;wget \u00a0 \u00a0\u76ee\u5f55 \u00a0 \u00a0&#034;\u7f51\u9875\u4e2d\u7684\u6587\u4ef6\u94fe\u63a5&#034;<\/li>\n<\/ul>\n<p><span style=\"color:#4da8ee\">&#xff08;\u4f8b\u5982&#xff1a;wget \u00a0 \u00a0 \/home \u00a0 \u00a0 &#034;<span style=\"color:#4da8ee\"><span style=\"color:#4da8ee\"><span style=\"color:#4da8ee\"><span style=\"color:#4da8ee\"><span style=\"color:#4da8ee\"><span style=\"color:#4da8ee\"><span style=\"color:#4da8ee\">https:\/\/www.openmx-square.org\/bugfixed\/21Oct17\/README.txt<\/span><\/span><\/span><\/span><\/span><\/span><\/span>&#034;&#xff09;<\/span><\/p>\n<h5>4\u3001\u67e5\u770b\u5b8c\u6574CPU\u8be6\u7ec6\u4fe1\u606f<\/h5>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"266\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250509050106-681d8c1294822.png\" width=\"275\" \/><\/p>\n<p>\u67e5\u770b\u5f53\u524d\u5185\u5b58\u5927\u5c0f\u53ca\u4f7f\u7528\u60c5\u51b5&#xff1a;free -h <span style=\"color:#4da8ee\">&#xff08;-h \u4ee5\u4eba\u7c7b\u53ef\u8bfb\u7684\u65b9\u5f0f\u663e\u793a&#xff0c;\u5373\u540e\u8fb9\u4f1a\u81ea\u52a8\u5e26\u4e0a\u5355\u4f4d&#xff09;<\/span><\/p>\n<h5>5\u3001\u67e5\u770bGPU\u7684\u72b6\u6001<\/h5>\n<p>ixsmi\u00a0\u6216\u8005\u00a0nvidia-smi\u6216\u8005nvcc &#8211;version\u00a0<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"274\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250509050107-681d8c133395f.png\" width=\"412\" \/><\/p>\n<h5 style=\"text-align:justify\">\u200b\u200b\u200b\u200b\u200b\u200b\u200b6\u3001\u96c6\u7fa4\u67e5\u770b\u4efb\u52a1<\/h5>\n<p style=\"text-align:justify\">\u67e5\u770b\u63d0\u4ea4\u4f5c\u4e1a\u7684\u6392\u961f\u60c5\u51b5\u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#xff1a; squeue<\/p>\n<p style=\"text-align:justify\">\u67e5\u770b\u6307\u5b9a\u7528\u6237\u63d0\u4ea4\u4f5c\u4e1a\u7684\u60c5\u51b5 &#xff1a;\u00a0squeue -u \u7528\u6237\u540d<\/p>\n<p style=\"text-align:justify\">\u53d6\u6d88\u4f5c\u4e1aID\u4e3a123\u7684\u4f5c\u4e1a \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;scancel 123<\/p>\n<p style=\"text-align:justify\">\u53d6\u6d88\u6307\u5b9a\u7528\u6237\u7684\u5168\u90e8\u4f5c\u4e1a \u00a0 \u00a0 \u00a0 \u00a0 &#xff1a;scancel -u \u7528\u6237\u540d<\/p>\n<p style=\"text-align:justify\">\u53d6\u6d88\u81ea\u5df1\u4e0a\u673a\u8d26\u53f7\u4e0a\u6240\u6709\u72b6\u6001\u4e3aPENDING\u7684\u4f5c\u4e1a&#xff1a;scancel -t PENDING -u \u7528\u6237\u540d<\/p>\n<h5>7\u3001Linux\u67e5\u770b\u7248\u672c\u4fe1\u606f<\/h5>\n<p>#\u663e\u793aLinux\u7248\u672c\u548c\u5f53\u524d\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u4fe1\u606f<\/p>\n<p>\u00a0uname -a<\/p>\n<p>#\u67e5\u770b\u7cfb\u7edf\u7684IP\u5730\u5740<\/p>\n<p>\u00a0ifconfig&#xff08;\u66f4\u591a\u4fe1\u606f&#xff1a;\u67e5\u770b\u7f51\u5361\u4fe1\u606f&#xff1a;ifconfig\u547d\u4ee4\u53ca\u8be6\u7ec6\u4ecb\u7ecd-CSDN\u535a\u5ba2&#xff09;<\/p>\n<h5 style=\"background-color:transparent\">8\u3001\u666e\u901a\u7528\u6237&#8211;root\u7528\u6237<\/h5>\n<p>#\u5207\u6362root\u6743\u9650&#xff0c;\u9700\u8981\u8f93\u5165root\u5bc6\u7801<\/p>\n<p>sudo su root\u00a0<\/p>\n<p>#\u9000\u51faroot\u6743\u9650<\/p>\n<p>exit<\/p>\n<p>#\u521b\u5efa\u666e\u901a\u7528\u6237&#xff0c;\u9700\u8981\u4e3a\u65b0\u7528\u6237\u8bbe\u7f6e\u5bc6\u7801<\/p>\n<p>adduser \u00a0\u7528\u6237\u540d<\/p>\n<p>#\u521b\u5efa\u7684\u6587\u4ef6foldername\u6388\u6743\u7ed9\u6307\u5b9a\u7528\u6237username<\/p>\n<p>sudo chown -R username:username foldername<\/p>\n<p><span style=\"color:#d4e9d5\">#-R\u53c2\u6570\u8868\u793a\u9012\u5f52\u5904\u7406\u6240\u6709\u5b50\u6587\u4ef6\u5939\u548c\u6587\u4ef6&#xff0c;\u5c06\u5176\u6388\u6743\u7ed9\u6307\u5b9a\u7528\u6237&#xff1b;username\u4e3a\u8981\u6388\u6743\u7684\u7528\u6237&#xff0c;\u540e\u9762\u7684username\u8868\u793a\u7528\u6237\u6240\u5728\u7684\u7ec4&#xff1b;foldername\u4e3a\u8981\u6388\u6743\u7684\u6587\u4ef6\u5939<\/span><\/p>\n<h2><span style=\"color:#fe2c24\">\u5173\u4e8epip:<\/span><\/h2>\n<p>\u663e\u793a\u8be5\u5b89\u88c5\u7684\u5305\u7684\u76f8\u5173\u4fe1\u606f&#xff1a;pip show \u5b89\u88c5\u5305\u7684\u540d\u5b57<span style=\"color:#4da8ee\">&#xff08;\u5305\u62ec\u5b83\u7684\u5b89\u88c5\u8def\u5f84\u3002\u5b9e\u9645\u4e0a\u5305\u901a\u5e38\u88ab\u5b89\u88c5\u5728python\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684lib\\\\site-packages\u76ee\u5f55\u4e0b&#xff09;<\/span><\/p>\n<p>\u663e\u793a\u5df2\u5b89\u88c5\u5305\u7684\u4fe1\u606f&#xff1a;pip list<span style=\"color:#4da8ee\">&#xff08;\u5305\u540d\u4e0e\u7248\u672c\u53f7&#xff09;<\/span><\/p>\n<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb585\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u8fdb\u5165\u6587\u4ef6\u5939\uff1acd _\u670d\u52a1\u5668\u547d\u4ee4<\/p>\n","protected":false},"author":2,"featured_media":36362,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58],"topic":[],"class_list":["post-36364","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u670d\u52a1\u5668\uff08Linux\uff09\u5e38\u89c1\u547d\u4ee4\uff08\u4e2a\u4eba\u6536\u85cf\u7248\uff09 - \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\/36364.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u670d\u52a1\u5668\uff08Linux\uff09\u5e38\u89c1\u547d\u4ee4\uff08\u4e2a\u4eba\u6536\u85cf\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb585\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u8fdb\u5165\u6587\u4ef6\u5939\uff1acd _\u670d\u52a1\u5668\u547d\u4ee4\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/36364.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-09T05:01:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250509050106-681d8c1294822.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\/36364.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/36364.html\",\"name\":\"\u670d\u52a1\u5668\uff08Linux\uff09\u5e38\u89c1\u547d\u4ee4\uff08\u4e2a\u4eba\u6536\u85cf\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-09T05:01:11+00:00\",\"dateModified\":\"2025-05-09T05:01:11+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/36364.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/36364.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/36364.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u670d\u52a1\u5668\uff08Linux\uff09\u5e38\u89c1\u547d\u4ee4\uff08\u4e2a\u4eba\u6536\u85cf\u7248\uff09\"}]},{\"@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":"\u670d\u52a1\u5668\uff08Linux\uff09\u5e38\u89c1\u547d\u4ee4\uff08\u4e2a\u4eba\u6536\u85cf\u7248\uff09 - \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\/36364.html","og_locale":"zh_CN","og_type":"article","og_title":"\u670d\u52a1\u5668\uff08Linux\uff09\u5e38\u89c1\u547d\u4ee4\uff08\u4e2a\u4eba\u6536\u85cf\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb585\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u8fdb\u5165\u6587\u4ef6\u5939\uff1acd _\u670d\u52a1\u5668\u547d\u4ee4","og_url":"https:\/\/www.wsisp.com\/helps\/36364.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-09T05:01:11+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250509050106-681d8c1294822.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\/36364.html","url":"https:\/\/www.wsisp.com\/helps\/36364.html","name":"\u670d\u52a1\u5668\uff08Linux\uff09\u5e38\u89c1\u547d\u4ee4\uff08\u4e2a\u4eba\u6536\u85cf\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-09T05:01:11+00:00","dateModified":"2025-05-09T05:01:11+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/36364.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/36364.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/36364.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u670d\u52a1\u5668\uff08Linux\uff09\u5e38\u89c1\u547d\u4ee4\uff08\u4e2a\u4eba\u6536\u85cf\u7248\uff09"}]},{"@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\/36364","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=36364"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/36364\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/36362"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=36364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=36364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=36364"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=36364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}