{"id":396,"date":"2019-04-19T14:14:00","date_gmt":"2019-04-19T06:14:00","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=396"},"modified":"2024-01-27T05:30:41","modified_gmt":"2024-01-26T21:30:41","slug":"whereis","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/whereis","title":{"rendered":"whereis\u547d\u4ee4 &#8211; \u663e\u793a\u547d\u4ee4\u53ca\u76f8\u5173\u6587\u4ef6\u7684\u8def\u5f84\u4f4d\u7f6e"},"content":{"rendered":"\n<p>whereis\u547d\u4ee4\u7684\u529f\u80fd\u662f\u663e\u793a\u547d\u4ee4\u53ca\u76f8\u5173\u6587\u4ef6\u7684\u8def\u5f84\u4f4d\u7f6e\u4fe1\u606f\uff0c\u53ef\u7528\u4e8e\u627e\u5230\u547d\u4ee4\uff08\u4e8c\u8fdb\u5236\u7a0b\u5e8f\uff09\u3001\u547d\u4ee4\u6e90\u4ee3\u7801\u3001man\u5e2e\u52a9\u624b\u518c\u7b49\u76f8\u5173\u6587\u4ef6\u7684\u8def\u5f84\u4f4d\u7f6e\u4fe1\u606f\uff0c\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u7ba1\u7406\u8fd9\u4e9b\u6587\u4ef6\u3002 <\/p>\n\n\n\n<p>\u6709\u522b\u4e8efind\u547d\u4ee4\u8fdb\u884c\u7684\u5168\u76d8\u641c\u7d22\uff0cwhereis\u547d\u4ee4\u7684\u67e5\u627e\u901f\u5ea6\u975e\u5e38\u5feb\uff0c\u56e0\u4e3a\u5b83\u4e0d\u662f\u5728\u78c1\u76d8\u4e2d\u4e71\u627e\uff0c\u800c\u662f\u5728\u6307\u5b9a\u6570\u636e\u5e93\u4e2d\u67e5\u8be2\uff0c\u8be5\u6570\u636e\u5e93\u662fLinux\u7cfb\u7edf\u81ea\u52a8\u521b\u5efa\u7684\uff0c\u5305\u542b\u672c\u5730\u6240\u6709\u6587\u4ef6\u7684\u4fe1\u606f\uff0c\u6bcf\u5929\u81ea\u52a8\u66f4\u65b0\u4e00\u6b21\u3002\u4f46\u4e5f\u6b63\u56e0\u4e3a\u8fd9\u6837\uff0cwhereis\u547d\u4ee4\u7684\u641c\u7d22\u7ed3\u679c\u4f1a\u4e0d\u53ca\u65f6\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\u8fd8\u6ca1\u6709\u66f4\u65b0\uff0c\u7ba1\u7406\u4eba\u5458\u9700\u624b\u52a8\u6267\u884cupdatedb\u547d\u4ee4\u8fdb\u884c\u66f4\u65b0\u3002<\/p>\n\n\n\n<p><strong>\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>whereis \u53c2\u6570 \u547d\u4ee4\u540d<\/p>\n\n\n\n<p><strong>\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>-b<\/td><td>\u67e5\u627e\u4e8c\u8fdb\u5236\u7a0b\u5e8f\u6216\u547d\u4ee4\u6587\u4ef6<\/td><td rowspan=\"2\">&nbsp;<\/td><td>-s<\/td><td>\u4ec5\u67e5\u627e\u6e90\u4ee3\u7801\u6587\u4ef6<\/td><\/tr><tr><td>-m<\/td><td>\u67e5\u627eman\u5e2e\u52a9\u624b\u518c\u6587\u4ef6<\/td><td>-u<\/td><td>\u67e5\u627e\u53ef\u6267\u884c\u6587\u4ef6\u3001\u6e90\u4ee3\u7801\u53ca\u5e2e\u52a9\u6587\u6863<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u53c2\u8003\u793a\u4f8b<\/strong><\/p>\n\n\n\n<p>\u67e5\u627e\u6307\u5b9a\u547d\u4ee4\u7a0b\u5e8f\u53ca\u76f8\u5173\u6587\u4ef6\u6240\u5728\u7684\u4f4d\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# whereis poweroff\r\npoweroff: \/usr\/sbin\/poweroff \/usr\/share\/man\/man8\/poweroff.8.gz\r<\/pre>\n\n\n\n<p>\u4ec5\u67e5\u627e\u6307\u5b9a\u547d\u4ee4\u7a0b\u5e8f\u6587\u4ef6\u6240\u5728\u7684\u4f4d\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# whereis -b poweroff \r\npoweroff: \/usr\/sbin\/poweroff \r<\/pre>\n\n\n\n<p>\u4ec5\u67e5\u627e\u6307\u5b9a\u547d\u4ee4\u7684\u5e2e\u52a9\u6587\u4ef6\u6240\u5728\u7684\u4f4d\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# whereis -m poweroff \r\npoweroff: \/usr\/share\/man\/man8\/poweroff.8.gz\r<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>whereis\u547d\u4ee4\u7684\u529f\u80fd\u662f\u663e\u793a\u547d\u4ee4\u53ca\u76f8\u5173\u6587\u4ef6\u7684\u8def\u5f84\u4f4d\u7f6e\u4fe1\u606f\uff0c\u53ef\u7528\u4e8e\u627e\u5230\u547d\u4ee4\uff08\u4e8c\u8fdb\u5236\u7a0b\u5e8f\uff09\u3001\u547d\u4ee4\u6e90\u4ee3\u7801\u3001man\u5e2e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-396","post","type-post","status-publish","format-standard","hentry","category-file"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/396","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=396"}],"version-history":[{"count":21,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/396\/revisions"}],"predecessor-version":[{"id":17379,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/396\/revisions\/17379"}],"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}]}}