{"id":46805,"date":"2023-04-23T09:43:37","date_gmt":"2023-04-23T01:43:37","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=46805"},"modified":"2023-04-23T09:43:37","modified_gmt":"2023-04-23T01:43:37","slug":"linux-jar","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-jar.html","title":{"rendered":"\u5982\u4f55\u5728Linux\u4e2d\u67e5\u627e\u4e00\u4e2a\u6587\u4ef6"},"content":{"rendered":"

\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66\u300b - \u5fc5\u8bfb\u7684Linux\u7cfb\u7edf\u4e0e\u7ea2\u5e3dRHCE\u8ba4\u8bc1\u514d\u8d39\u81ea\u5b66\u4e66\u7c4d<\/strong><\/span><\/p>\n

\u514d\u8d39\u7535\u5b50\u7248\u4e0b\u8f7d\u5730\u5740\uff1ahttps:\/\/lrxjmw.cn\/book<\/a><\/strong><\/span><\/p>\n

\"\"<\/a><\/p>\n\n\n\n
\u5bfc\u8bfb<\/td>\n\u5bf9\u4e8e\u65b0\u624b\u800c\u8a00\uff0c\u5728Linux\u4e2d\u4f7f\u7528\u547d\u4ee4\u884c\u53ef\u80fd\u4f1a\u975e\u5e38\u4e0d\u65b9\u4fbf\u3002\u6ca1\u6709\u56fe\u5f62\u754c\u9762\uff0c\u5f88\u96be\u5728\u4e0d\u540c\u6587\u4ef6\u5939\u95f4\u6d4f\u89c8\uff0c\u627e\u5230\u9700\u8981\u7684\u6587\u4ef6\u3002\u672c\u7bc7\u6559\u7a0b\u4e2d\uff0c\u6211\u4f1a\u5c55\u793a\u5982\u4f55\u5728Linux\u4e2d\u67e5\u627e\u7279\u5b9a\u7684\u6587\u4ef6\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/a><\/p>\n

\u7b2c\u4e00\u6b65\u8981\u505a\u7684\u662f\u901a\u8fc7SSH\u8fde\u63a5\u5230\u4f60\u7684Linux,\u5728Linux\u4e2d\u67e5\u627e\u6587\u4ef6\u6709\u4e24\u79cd\u65b9\u6cd5\u3002<\/strong><\/div>\n
\u4e00\u79cd\u662f\u4f7f\u7528\u00a0find\u00a0\u547d\u4ee4<\/strong><\/span><\/div>\n

find\u547d\u4ee4\u4f7f\u7528\u00a0Linux find\u547d\u4ee4\u53ef\u4ee5\u7528\u4e0d\u540c\u7684\u641c\u7d22\u6807\u51c6\u5982\u540d\u5b57\u3001\u7c7b\u578b\u3001\u6240\u5c5e\u4eba\u3001\u5927\u5c0f\u7b49\u6765\u641c\u7d22\u76ee\u5f55\u6811\u3002\u57fa\u672c\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n

#\u00a0find\u00a0path\u00a0expression\u00a0search-term<\/pre>\n

\u9762\u662f\u4f7f\u7528find\u547d\u4ee4\u6839\u636e\u6587\u4ef6\u540d\u6765\u67e5\u627e\u7279\u5b9a\u6587\u4ef6\u7684\u4e00\u4e2a\u4f8b\u5b50\uff1a<\/p>\n

#\u00a0find\u00a0-name\u00a0test.file<\/pre>\n

\u547d\u4ee4\u4f1a\u641c\u7d22\u6574\u4e2a\u76ee\u5f55\u6811\u6765\u67e5\u627e\u540d\u4e3a\u00a0test.file\u00a0\u7684\u6587\u4ef6\uff0c\u5e76\u4e14\u4f1a\u63d0\u4f9b\u5176\u5b58\u653e\u4f4d\u7f6e\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4f60Linux\u4e0a\u4e00\u4e2a\u5b58\u5728\u7684\u6587\u4ef6\u540d\u6765\u5c1d\u8bd5\u4e00\u4e0b\u3002<\/p>\n

find\u547d\u4ee4\u6709\u65f6\u4f1a\u82b1\u8d39\u51e0\u5206\u949f\u6765\u67e5\u627e\u6574\u4e2a\u76ee\u5f55\u6811\uff0c\u5c24\u5176\u662f\u5982\u679c\u7cfb\u7edf\u4e2d\u6709\u5f88\u591a\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u8bdd\u3002\u8981\u663e\u8457\u51cf\u5c11\u65f6\u95f4\uff0c\u4f60\u53ef\u4ee5\u6307\u5b9a\u641c\u7d22\u7684\u76ee\u5f55\u3002\u6bd4\u5982\uff0c\u5982\u679c\u4f60\u77e5\u9053\u00a0\/var\u00a0\u4e2d\u5b58\u5728\u00a0test.file\uff0c\u90a3\u5c31\u6ca1\u6709\u5fc5\u8981\u641c\u7d22\u5176\u5b83\u76ee\u5f55\u3002\u8fd9\u6837\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\uff1a<\/p>\n

#\u00a0find\u00a0\/var\u00a0-name\u00a0test.file<\/pre>\n

find\u8fd8\u53ef\u4ee5\u6839\u636e\u65f6\u95f4\u3001\u5927\u5c0f\u3001\u6240\u5c5e\u4eba\u3001\u6743\u9650\u7b49\u9009\u9879\u641c\u7d22\u6587\u4ef6\u3002\u8981\u4e86\u89e3\u66f4\u591a\u5173\u4e8e\u8fd9\u4e9b\u9009\u9879\u7684\u4fe1\u606f\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u67e5\u770b** Linux find\u547d\u4ee4**\u7684\u624b\u518c\u3002<\/p>\n

#\u00a0man\u00a0find<\/pre>\n
\u4e00\u79cd\u662f\u4f7f\u7528\u00a0locate\u00a0\u547d\u4ee4<\/strong><\/span><\/div>\n

\u8981\u5728Linux\u4e2d\u4f7f\u7528locate\u547d\u4ee4\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u5b83\u3002<\/p>\n

\u5982\u679c\u4f60\u6b63\u5728\u4f7f\u7528Ubuntu\uff0c\u8fd0\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u6765\u5b89\u88c5locate\uff1a<\/p>\n

#\u00a0apt-get\u00a0update<\/pre>\n
#\u00a0apt-get\u00a0install\u00a0mlocate<\/pre>\n

\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662fCentOS\uff0c\u8fd0\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u6765\u5b89\u88c5locate\uff1a<\/p>\n

#\u00a0yum\u00a0install\u00a0mlocate<\/pre>\n

locate\u662f\u4e00\u79cd\u6bd4find\u66f4\u5feb\u7684\u65b9\u5f0f\uff0c\u56e0\u4e3a\u5b83\u5728\u6570\u636e\u5e93\u4e2d\u67e5\u627e\u6587\u4ef6\u3002\u8981\u66f4\u65b0\u641c\u7d22\u6570\u636e\u5e93\uff0c\u8fd0\u884c\u4e0b\u9762\u7684\u547d\u4ee4\uff1a<\/p>\n

#\u00a0updatedb<\/pre>\n

\u4f7f\u7528locate\u67e5\u627e\u6587\u4ef6\u7684\u8bed\u6cd5\uff1a<\/p>\n

#\u00a0locate\u00a0test.file<\/pre>\n

\u5c31\u50cffind\u547d\u4ee4\u4e00\u6837\uff0clocate\u4e5f\u6709\u5f88\u591a\u9009\u9879\u6765\u8fc7\u6ee4\u8f93\u51fa\u3002\u8981\u4e86\u89e3\u66f4\u591a\u4f60\u53ef\u4ee5\u67e5\u770bLinux Locate\u547d\u4ee4\u7684\u624b\u518c\u3002<\/p>\n

#\u00a0man\u00a0locate<\/pre>\n
\n

\u7ea2\u5e3dRHCE\u8ba4\u8bc1\u8003\u9898\u8bb2\u89e3\uff1ahttps:\/\/lrxjmw.cn\/redhat-certificate<\/a><\/span><\/strong><\/p>\n

\"\u7b2c0\u7ae0<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66\u300b – \u5fc5\u8bfb\u7684Linux\u7cfb\u7edf\u4e0e\u7ea2\u5e3dRHCE\u8ba4\u8bc1\u514d\u8d39\u81ea\u5b66\u4e66\u7c4d \u514d\u8d39\u7535\u5b50\u7248\u4e0b\u8f7d\u5730\u5740\uff1ahttp […]<\/p>\n","protected":false},"author":63,"featured_media":46809,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-46805","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/46805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=46805"}],"version-history":[{"count":6,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/46805\/revisions"}],"predecessor-version":[{"id":222157,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/46805\/revisions\/222157"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/46809"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=46805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=46805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=46805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}