{"id":396,"date":"2019-04-19T14:14:00","date_gmt":"2019-04-19T06:14:00","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=396"},"modified":"2019-04-19T14:16:45","modified_gmt":"2019-04-19T06:16:45","slug":"whereis","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/whereis","title":{"rendered":"whereis\u547d\u4ee4 – \u663e\u793a\u547d\u4ee4\u53ca\u76f8\u5173\u6587\u4ef6\u7684\u8def\u5f84"},"content":{"rendered":"\n
whereis\u547d\u4ee4\u7528\u6765\u5b9a\u4f4d\u547d\u4ee4\u7684\u4e8c\u8fdb\u5236\u7a0b\u5e8f\u3001\u6e90\u4ee3\u7801\u6587\u4ef6\u548cman\u624b\u518c\u9875\u7b49\u76f8\u5173\u6587\u4ef6\u7684\u8def\u5f84\u3002<\/p>\n\n\n\n
whereis\u547d\u4ee4\u67e5\u627e\u901f\u5ea6\u975e\u5e38\u5feb\uff0c\u56e0\u4e3a\u5b83\u4e0d\u662f\u5728\u78c1\u76d8\u4e2d\u4e71\u627e\uff0c\u800c\u662f\u5728\u4e00\u4e2a\u6570\u636e\u5e93\u4e2d\u67e5\u8be2; \u6570\u636e\u5e93\u662flinux\u7cfb\u7edf\u81ea\u52a8\u521b\u5efa\u7684\uff0c\u5305\u542b\u6709\u672c\u5730\u6240\u6709\u6587\u4ef6\u7684\u4fe1\u606f\uff0c\u5e76\u4e14\u6bcf\u5929\u901a\u8fc7\u81ea\u52a8\u6267\u884cupdatedb\u547d\u4ee4\u66f4\u65b0\u4e00\u6b21\u3002\u6b63\u56e0\u4e3a\u8fd9\u6837\uff0cwhereis\u547d\u4ee4\u7684\u641c\u7d22\u7ed3\u679c\u6709\u65f6\u5019\u4f1a\u4e0d\u51c6\u786e\uff0c\u6bd4\u5982\u521a\u6dfb\u52a0\u7684\u6587\u4ef6\u53ef\u80fd\u641c\u4e0d\u5230\uff0c \u539f\u56e0\u5c31\u662f\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u6ca1\u6709\u88ab\u66f4\u65b0\u3002 <\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>whereis [\u53c2\u6570] [\u547d\u4ee4\u540d] <\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u663e\u793aln\u547d\u4ee4\u7684\u7a0b\u5e8f\u548cman\u624b\u518c\u9875\u7684\u4f4d\u7f6e\uff1a<\/p>\n\n\n\n \u663e\u793aln\u547d\u4ee4\u7684\u4e8c\u8fdb\u5236\u7a0b\u5e8f\u7684\u8def\u5f84\uff1a <\/p>\n\n\n\n \u663e\u793aln\u547d\u4ee4\u7684man\u624b\u518c\u9875\u7684\u8def\u5f84\uff1a <\/p>\n\n\n\n whereis\u547d\u4ee4\u7528\u6765\u5b9a\u4f4d\u547d\u4ee4\u7684\u4e8c\u8fdb\u5236\u7a0b\u5e8f\u3001\u6e90\u4ee3\u7801\u6587\u4ef6\u548cman\u624b\u518c\u9875\u7b49\u76f8\u5173\u6587\u4ef6\u7684\u8def\u5f84\u3002 whereis\u547d\u4ee4\u67e5\u627e […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/396"}],"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=396"}],"version-history":[{"count":12,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/396\/revisions"}],"predecessor-version":[{"id":2095,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/396\/revisions\/2095"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-b<\/td> \u67e5\u627e\u4e8c\u8fdb\u5236\u7a0b\u5e8f\u6216\u547d\u4ee4<\/td><\/tr> -B<\/td> \u4ece\u6307\u5b9a\u76ee\u5f55\u4e0b \u67e5\u627e\u4e8c\u8fdb\u5236\u7a0b\u5e8f\u6216\u547d\u4ee4 <\/td><\/tr> -m<\/td> \u67e5\u627eman\u624b\u518c\u6587\u4ef6<\/td><\/tr> -M<\/td> \u4ece\u6307\u5b9a\u76ee\u5f55\u4e0b \u67e5\u627eman\u624b\u518c\u6587\u4ef6 <\/td><\/tr> -s<\/td> \u53ea\u67e5\u627e\u6e90\u4ee3\u7801\u6587\u4ef6<\/td><\/tr> -S<\/td> \u4ece\u6307\u5b9a\u76ee\u5f55\u4e0b \u67e5\u627e\u6e90\u4ee3\u7801\u6587\u4ef6 <\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# whereis ln
ln: \/usr\/bin\/ln \/usr\/share\/man\/man1\/ln.1.gz \/usr\/share\/man\/man1p\/ln.1p.gz<\/pre>\n\n\n\n[root@linuxcool ~]# whereis -b ln
ln: \/usr\/bin\/ln<\/pre>\n\n\n\n[root@linuxcool ~]# whereis -m ln
ln: \/usr\/share\/man\/man1\/ln.1.gz \/usr\/share\/man\/man1p\/ln.1p.gz<\/pre>\n","protected":false},"excerpt":{"rendered":"