{"id":18379,"date":"2024-04-28T20:04:58","date_gmt":"2024-04-28T12:04:58","guid":{"rendered":"https:\/\/www.linuxcool.com\/lmldpyfslfdz"},"modified":"2024-04-28T20:04:58","modified_gmt":"2024-04-28T12:04:58","slug":"lmldpyfslfdz","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lmldpyfslfdz","title":{"rendered":"Linux\u547d\u4ee4,\u642d\u914d\u7528\u6cd5\u793a\u4f8bfind\u7684\u4f5c\u7528\u793a\u4f8b\u793a\u4f8b"},"content":{"rendered":"<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>linuxfind\u642d\u914d\u7528\u6cd5\u793a\u4f8bfind\u662f\u6211\u4eec\u5f88\u5e38\u7528\u7684\u4e00\u4e2a<a style='color:#0000CC;font-size:16px' href='https:\/\/www.linuxprobe.com\/' target='_blank' rel=\"noopener\">Linux<\/a><a style='color:#0000CC;font-size:16px' href='https:\/\/www.linuxcool.com\/' target='_blank' rel=\"noopener\">\u547d\u4ee4<\/a>,\u800c\u4e14\u6211\u4eec\u901a\u5e38\u67e5\u627e\u4e0b\u6765\u7684\u5e76\u4e0d\u4ec5\u4ec5\u662f\u77a7\u77a7\u800c\u5df2,\u5c31\u4f1a\u6709\u8fdb\u4e00\u6b65\u7684\u64cd\u4f5c<strong>linux find\u547d\u4ee4 \u62ec\u53f7<\/strong>,\u8fd9\u4e2a\u65f6\u4fafexec\u7684\u4f5c\u7528\u5c31\u663e\u9732\u4e0b\u6765\u4e86\u3002\u770b\u4e8b\u4f8b:find.\/-name&#8221;*.txt&#8221;-execls-l&#8221;{}&#8221;;.\/-name&#8221;*.txt&#8221;-execmv&#8221;{}&#8221;&#8221;{}d&#8221;;:-mand\u547d\u4ee4,\u5b83\u7684\u4e2d\u6b62\u662f\u4ee5;\u4e3a\u7ed3\u675f\u6807\u5fd7\u7684,\u6240\u4ee5\u8fd9\u53e5\u547d\u4ee4\u524d\u9762\u7684\u5206\u53f7\u662f\u4e0d\u53ef\u7f3a\u4e4f\u7684,\u8003\u8651\u5230\u5404\u4e2a<a style='color:#0000CC;font-size:16px' href='https:\/\/www.linuxdown.com\/' target='_blank' rel=\"noopener\">\u7cfb\u7edf<\/a>\u77ed\u53d1\u53f7\u4f1a\u6709\u4e0d\u540c\u7684\u610f\u4e49,\u6240\u4ee5\u540e\u9762\u52a0\u53cd\u659c\u6760\u3002{}\u82b1\u62ec\u5f27\u4ee3\u8868\u540e\u9762find\u67e5\u627e\u4e0b\u6765\u7684\u6587\u4ef6\u540d\u3002\u4e8b\u4f8b:find.\/-name&#8221;*.tmp&#8221;-execrm-rf&#8221;{}&#8221;;\u5220\u6389\u6240\u6709\u7684\u4e34\u65f6\u6587\u4ef6-exec\u53e5\u578b\u683c\u5f0f\u4e3a:-MAND{};\/\/\u6ce8\u610f{};\u4e4b\u95f4\u5fc5\u9700\u8981\u6709\u7a7a\u683cshell\u7684\u5185\u5efa\u547d\u4ee4exec\u5c06\u5e76\u4e0d\u542f\u52a8\u65b0\u7684shelllinux\u67e5\u770b\u7aef\u53e3\u5360\u7528,\u800c\u662f\u7528\u8981\u88ab\u6267\u884c\u547d\u4ee4\u66ff\u6362\u5f53\u524d\u7684shell\u8fdb\u7a0b,\u800c\u4e14\u5c06\u8001\u8fdb\u7a0b\u7684\u73af\u5883\u6e05\u9664\u6389,\u4f46\u662fexec\u547d\u4ee4\u540e\u7684\u5176\u5b83\u547d\u4ee4\u5c06\u4e0d\u518d\u6267\u884c\u3002\u56e0\u800csogou pinyin linux,\u5047\u5982\u4f60\u5728\u4e00\u4e2ashell\u4e0a\u9762,\u6267\u884cexecls\u8fd9\u4e48,\u5f53\u5217\u4e3e\u4e86\u5f53\u524d\u76ee\u5f55\u540e,\u8fd9\u4e2ashell\u5c31\u81ea\u5df1\u9000\u51fa\u4e86,\u7531\u4e8e\u8fd9\u4e2ashell\u8fdb\u7a0b\u5df2\u88ab\u66ff\u6362\u4e3a\u4ec5\u4ec5\u6267\u884cls\u547d\u4ee4\u7684\u4e00\u4e2a\u8fdb\u7a0b,\u6267\u884c\u7ed3\u675f\u81ea\u7136\u4e5f\u5c31\u9000\u51fa\u4e86\u3002\u4e3a\u4e86\u9632\u6b62\u8fd9\u4e2a\u5f71\u54cd\u6211\u4eec\u7684\u4f7f\u7528<strong>linux find\u547d\u4ee4 \u62ec\u53f7<\/strong>,\u901a\u5e38\u5c06exec\u547d\u4ee4\u653e\u5728\u4e00\u4e2ashell\u811a\u672c\u4e0a\u9762,\u7528\u4e3b\u811a\u672c\u8c03\u7528\u8fd9\u4e2a\u811a\u672c,,(),,\u5f53\u6267\u884c\u5230exec\u540e,\u8be5\u5b50\u811a\u672c\u8fdb\u7a0b\u5c31\u88ab\u66ff\u6362\u6210\u4e86\u76f8\u5e94\u7684exec\u7684\u547d\u4ee4\u3002sou<\/p>\n","protected":false},"excerpt":{"rendered":"<p>linuxfind\u642d\u914d\u7528\u6cd5\u793a\u4f8bfind\u662f\u6211\u4eec\u5f88\u5e38\u7528\u7684\u4e00\u4e2aLinux\u547d\u4ee4,\u4f46\u662f\u6211\u4eec\u4e00\u822c\u67e5\u627e\u51fa\u6765\u7684\u5e76\u4e0d\u4ec5\u4ec5\u662f\u770b\u770b\u800c\u5df2,\u8fd8\u4f1a\u6709\u8fdb\u4e00\u6b65\u7684\u64cd\u4f5c,\u8fd9\u4e2a\u65f6\u5019exec\u7684\u4f5c\u7528\u5c31\u663e\u73b0\u51fa\u6765\u4e86\u3002{}\u82b1\u62ec\u53f7\u4ee3\u8868\u524d\u9762find\u67e5\u627e\u51fa\u6765\u7684\u6587\u4ef6\u540d\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[37,217,71,118,115],"class_list":["post-18379","post","type-post","status-publish","format-standard","hentry","category-knowledge","tag-ml","tag-zx","tag-sl","tag-jb","tag-jc"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/18379","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=18379"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/18379\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=18379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=18379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=18379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}