{"id":17550,"date":"2024-02-12T04:12:00","date_gmt":"2024-02-11T20:12:00","guid":{"rendered":"https:\/\/www.linuxcool.com\/qszwlmlcrmdj"},"modified":"2024-02-12T04:12:00","modified_gmt":"2024-02-11T20:12:00","slug":"qszwlmlcrmdj","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/qszwlmlcrmdj","title":{"rendered":"\u8f7b\u677e\u638c\u63e1Linux\u547d\u4ee4\uff0c\u4ece\u5165\u95e8\u5230\u7cbe\u901a"},"content":{"rendered":"<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5c0a\u656c\u7684\u65b0\u53cb\u4eeclinux find\uff0c\u8bf7\u770b\u8ba9\u60a8\u98de\u901f\u638c\u63e1<a style='color:#0000CC' href='https:\/\/www.linuxprobe.com\/' target='_blank' rel=\"noopener\">Linux<\/a><a style='color:#0000CC' href='https:\/\/www.linuxcool.com\/' target='_blank' rel=\"noopener\">\u547d\u4ee4<\/a>\u7684\u5b9e\u7528\u6559\u7a0b\u642d\u914d\u5177\u4f53\u4f8b\u5b50\u5206\u6790\u3002\u4e0d\u8bba\u662f\u670d\u52a1\u5668\u8fd0\u8425\uff0c\u8fd8\u662f\u5bb6\u7528\u7535\u8111\u6216\u79fb\u52a8\u8bbe\u5907\u7684\u4f7f\u7528\uff0cLinux\u90fd\u5df2\u6210\u4e3a\u5f00\u6e90\u64cd\u4f5c<a style='color:#0000CC' href='https:\/\/www.linuxdown.com\/' target='_blank' rel=\"noopener\">\u7cfb\u7edf<\/a>\u4e2d\u7684\u4f7c\u4f7c\u8005\u3002\u6211\u4eec\u671f\u5f85\u7740\u5171\u540c\u8fce\u63a5\u8fd9\u4e2a\u7f8e\u597d\u672a\u6765!<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>1. ls -\u5217\u51fa\u76ee\u5f55\u5185\u5bb9<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u60a8\u77e5\u9053\u5417\uff1f\u4f7f\u7528&#8221;ls&#8221;\uff08List\uff09\u8fd9\u4e2a\u6307\u4ee4\uff0c\u5c31\u50cf\u6211\u4eec\u6253\u5f00\u4e00\u6247\u7aa5\u89c6\u7684\u7a97\u6237\uff0c\u901a\u8fc7\u7b80\u5355\u5730\u5728\u952e\u76d8\u4e0a\u8f93\u5165\u5b83\uff0c\u7acb\u523b\u53ef\u4ee5\u770b\u5230\u5f53\u524d\u76ee\u5f55\u4e2d\u6240\u6709\u7684\u6587\u4ef6\u53ca\u5b50\u76ee\u5f55\u54e6\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>2. cd -\u5207\u6362\u76ee\u5f55<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5c0a\u656c\u7684\u7528\u6237\uff0c\u60a8\u53ef\u80fd\u4f1a\u4e0d\u89e3\uff0c\u600e\u4e48\u624d\u80fd\u65b9\u4fbf\u5730\u5207\u6362\u5f53\u524d\u64cd\u4f5c\u8def\u5f84\u5462\uff1f\u5b9e\u9645\u4e0a\uff0c\u53ea\u8981\u8fd0\u7528\u6211\u4eec\u7684cd\u547d\u4ee4\u5c31\u80fd\u8f7b\u677e\u641e\u5b9a\uff01\u65e0\u8bba\u662f\u5207\u6362\u81f3\u7279\u5b9a\u76ee\u5f55\uff0c\u8fd8\u662f\u6062\u590d\u4e4b\u524d\u7684\u6587\u4ef6\u5939\u7ed3\u6784\uff0c\u53ea\u9700\u53d1\u51fa\u6b63\u786e\u7684\u6307\u4ee4\u5373\u53ef\u3002\u6bd4\u5982\uff0c\u5047\u5982\u60a8\u60f3\u6d4f\u89c8\u5230\u8def\u5f84\/home\/username\uff0c\u4ec5\u9700\u8f93\u5165&#8221;cd \/home\/username&#8221;\u5373\u53ef\u7acb\u523b\u5b9e\u73b0\uff01<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>3. pwd -\u663e\u793a\u5f53\u524d\u6240\u5728\u8def\u5f84<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>&#8220;pwd&#8221;\u547d\u4ee4\u5341\u5206\u5b9e\u7528\uff0c\u5b83\u80fd\u591f\u7cbe\u51c6\u5730\u544a\u8bc9\u60a8\u6b63\u5728\u4f7f\u7528\u7684\u5de5\u4f5c\u8def\u5f84\u3002\u540c\u65f6\uff0c\u5373\u4f7f\u5728\u51cc\u4e71\u7684\u5b50\u76ee\u5f55\u73af\u5883\u4e0b\uff0c\u60a8\u4e5f\u80fd\u7528\u5b83\u8f7b\u6613\u5b9a\u4f4d\u5230\u6b63\u786e\u4f4d\u7f6e\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>4. mkdir -\u521b\u5efa\u76ee\u5f55<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>mkdir\u547d\u4ee4\u53ef\u4ee5\u5feb\u901f\u9ad8\u6548\u5730\u521b\u5efa\u65b0\u76ee\u5f55\u54e6\uff01\u53ea\u9700\u6839\u636e\u9700\u6c42,\u5728\u6307\u5b9a\u8def\u5f84\u6267\u884c\u8be5\u6307\u4ee4\uff0c\u4fbf\u80fd\u8f7b\u677e\u751f\u6210\u65b0\u7684\u6587\u4ef6\u5939\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0c\u4ec5\u9700\u8f93\u5165&#8221;mkdir test&#8221;,\u90a3\u4e48\u60a8\u6240\u5728\u7684\u5f53\u524d\u4f4d\u7f6e\u4f1a\u7acb\u523b\u51fa\u73b0\u4e00\u4e2a\u540d\u4e3a&#8221;test&#8221;\u7684\u6e05\u65b0\u65e0\u6bd4\u7684\u65b0\u76ee\u5f55\u5462\uff01<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>5. rm -\u5220\u9664\u6587\u4ef6\u6216\u76ee\u5f55<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:350px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2024\/02\/1707682319706_1.png' alt='\u5e38\u7528\u547d\u4ee4site_\u5e38\u7528linux\u547d\u4ee4_\u5e38\u7528\u547d\u4ee4\u63d0\u793a\u7b26' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5c0a\u8d35\u7684\u5404\u4f4d\u8bfb\u8005\u670b\u53cb<strong>\u5e38\u7528linux\u547d\u4ee4<\/strong>\uff0c\u8ba9\u6211\u4eec\u6765\u5b66\u4e60\u4e00\u4e0b&#8221;rm&#8221;\u8fd9\u4e2a\u7b80\u4fbf\u6709\u6548\u7684\u6587\u4ef6\u6e05\u7406\u79d8\u8bc0\u5427\uff01\u8be5\u6307\u4ee4\u53ef\u4ee5\u6df1\u5165\u6e05\u9664\u6587\u4ef6\u6216\u662f\u76ee\u5f55\u3002\u8b6c\u5982\uff0c\u6211\u4eec\u53ea\u9700\u8981\u7b80\u5355\u5730\u8f93\u5165\u201crm test.txt\u201d\uff0c\u4fbf\u80fd\u8f7b\u677e\u5220\u9664\u4f4d\u4e8e\u5f53\u524d\u6587\u4ef6\u5939\u4e2d\u7684&#8221;test.txt&#8221;\u6587\u4ef6\u4e86\u3002\u4f46\u662f\u8bf7\u5927\u5bb6\u52a1\u5fc5\u7559\u610flinux\u4e4b\u5bb6\uff0c\u8fd9\u662f\u4e00\u9879\u65e0\u6cd5\u633d\u56de\u7684\u64cd\u4f5c\u54df\uff01<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>6. cp -\u590d\u5236\u6587\u4ef6\u6216\u76ee\u5f55<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4eb2\u7231\u7684\u670b\u53cb\u4eec\uff0c\u77e5\u9053\u5417\uff1fCP\u547d\u4ee4\u5728\u6211\u4eec\u5e73\u65f6\u529e\u516c\u65f6\u53ef\u662f\u4e2a\u5927\u5e2e\u624b\u5462~\u5b83\u80fd\u5e2e\u52a9\u60a8\u5feb\u6377\u5730\u5b8c\u6210\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u62f7\u8d1d\u5de5\u4f5c<strong>\u5e38\u7528linux\u547d\u4ee4<\/strong>\uff0c\u7701\u5374\u5f88\u591a\u7e41\u7410\u624b\u52a8\u73af\u8282\u3002\u6bd4\u5982\u8bf4\uff0c\u53ea\u9700\u8981\u7b80\u5355\u8f93\u5165&#8221;cp test.txt \/home\/username&#8221;,\u60a8\u5c31\u53ef\u4ee5\u5c06\u5f53\u524d\u8def\u5f84\u4e2d\u7684test.txt\u6587\u4ef6\u8f7b\u677e\u79fb\u81f3\u6307\u5b9a\u7684\/home\/username\u76ee\u4e09\u3002\u5982\u6b64\u7b80\u4fbf\u5b9e\u7528\u7684\u65b9\u6cd5\uff0c\u60a8\u5c82\u80fd\u4e0d\u8bd5\u8bd5\u770b\u5462\uff1f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>7. mv -\u79fb\u52a8\u6587\u4ef6\u6216\u91cd\u547d\u540d<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>MV \u662f\u4e00\u4e2a\u4fbf\u6377\u5b9e\u7528\u7684\u5de5\u5177\uff0c\u53ef\u534f\u52a9\u60a8\u8f7b\u677e\u8fc1\u79fb\u53ca\u66f4\u6539\u6587\u4ef6\u540d\u3002\u65e0\u8bba\u662f\u6587\u4ef6\u683c\u5f0f\u8fd8\u662f\u6587\u4ef6\u5b58\u50a8\u4f4d\u7f6e\uff0c\u90fd\u80fd\u5728\u77ed\u65f6\u95f4\u5185\u5b9e\u73b0\u3002\u6bd4\u5982\uff0c\u5047\u8bbe\u60a8\u5e0c\u671b\u5c06\u76ee\u524d\u6240\u5728\u76ee\u5f55\u7684&#8221;test.txt&#8221;\u6587\u4ef6\u79fb\u81f3&#8221;\/home\/username&#8221;\u8def\u5f84\uff0c\u540c\u65f6\u66f4\u6539\u4e3a&#8221;test_new.txt&#8221;\uff0c\u53ea\u9700\u7b80\u5355\u8f93\u5165&#8221;mv test.txt \/home\/username\/test_new.txt&#8221;\u7684\u6307\u4ee4\u5373\u53ef\u6210\u529f\u65bd\u884c\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>8. cat -\u67e5\u770b\u6587\u4ef6\u5185\u5bb9<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:350px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2024\/02\/1707682319706_3.png' alt='\u5e38\u7528\u547d\u4ee4\u63d0\u793a\u7b26_\u5e38\u7528\u547d\u4ee4site_\u5e38\u7528linux\u547d\u4ee4' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u656c\u7231\u7684\u7528\u6237\uff0c\u8bf7\u4f7f\u7528\u7b80\u77ed\u7684&#8221;cat test.txt&#8221;\u547d\u4ee4\u6765\u9605\u8bfb\u548c\u67e5\u770b\u6587\u672c\u6587\u4ef6\u7684\u8be6\u7ec6\u4fe1\u606f\u54e6\uff01\u6b64\u547d\u4ee4\u5c06\u4f1a\u5728\u60a8\u7684\u7ec8\u7aef\u4e2d\u663e\u793a\u5f53\u524d\u76ee\u5f55\u4e2d\u7684&#8221;test.txt&#8221;\u6587\u4ef6\u5185\u5bb9\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>9. grep -\u67e5\u627e\u6587\u4ef6\u5185\u5bb9<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u60a8\u53ef\u5229\u7528\u7b80\u5355\u7684grep\u547d\u4ee4\u5728\u6587\u4ef6\u4e2d\u65b9\u4fbf\u5730\u641c\u7d22\u7279\u5b9a\u8bcd\u53e5\u3002\u4f8b\u5982\uff0c\u952e\u5165\u201cgrep hello test.txt\u201d\uff0c\u4fbf\u80fd\u8fc5\u901f\u4e86\u89e3test.txt\u6587\u6863\u4e2d\u662f\u5426\u5305\u542b\u4e86&#8221;hello&#8221;\u5b57\u6837\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u795d\u8d3a\u6bcf\u4f4d\u5c1d\u8bd5\u8fc7Linux\u57fa\u672c\u6307\u4ee4\u7684\u670b\u53cb\u4eec\uff01\u5982\u679c\u60a8\u60f3\u8981\u63d0\u5347\u7cfb\u7edf\u64cd\u4f5c\u6280\u672f\uff0c\u8bb0\u5f97\u6301\u4e4b\u4ee5\u6052\u5730\u591a\u591a\u953b\u70bc\u4f60\u7684\u6280\u80fd\uff0c\u7075\u6d3b\u8fd0\u7528\u5404\u5f0f\u5404\u6837\u7684\u547d\u4ee4\u3002\u6211\u76f8\u4fe1\uff0c\u5728\u6211\u4eec\u63a2\u7d22Linux\u4e16\u754c\u7684\u8fc7\u7a0b\u4e2d\uff0c\u60a8\u5fc5\u5b9a\u4f1a\u66f4\u52a0\u5f97\u5fc3\u5e94\u624b\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c0a\u656c\u7684\u65b0\u53cb\u4eec\uff0c\u8bf7\u770b\u8ba9\u60a8\u98de\u901f\u638c\u63e1Linux\u547d\u4ee4\u7684\u5b9e\u7528\u6559\u7a0b\u642d\u914d\u5177\u4f53\u4f8b\u5b50\u5206\u6790\u3002\u5b9e\u9645\u4e0a\uff0c\u53ea\u8981\u8fd0\u7528\u6211\u4eec\u7684cd\u547d\u4ee4\u5c31\u80fd\u8f7b\u677e\u641e\u5b9a\uff01pwd\u547d\u4ee4\u5341\u5206\u5b9e\u7528\uff0c\u5b83\u80fd\u591f\u7cbe\u51c6\u5730\u544a\u8bc9\u60a8\u6b63\u5728\u4f7f\u7528\u7684\u5de5\u4f5c\u8def\u5f84\u3002\u5c0a\u8d35\u7684\u5404\u4f4d\u8bfb\u8005\u670b\u53cb\uff0c\u8ba9\u6211\u4eec\u6765\u5b66\u4e60\u4e00\u4e0brm\u8fd9\u4e2a\u7b80\u4fbf\u6709\u6548\u7684\u6587\u4ef6\u6e05\u7406\u79d8\u8bc0\u5427\uff01\u662f\u4e00\u4e2a\u4fbf\u6377\u5b9e\u7528\u7684\u5de5\u5177\uff0c\u53ef\u534f\u52a9\u60a8\u8f7b\u677e\u8fc1\u79fb\u53ca\u66f4\u6539\u6587\u4ef6\u540d\u3002<\/p>\n","protected":false},"author":1,"featured_media":17551,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[37,686,32,84,661],"class_list":["post-17550","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge","tag-ml","tag-zl","tag-wj","tag-ml-2","tag-lj-2"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/17550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=17550"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/17550\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media\/17551"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=17550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=17550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=17550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}