{"id":44696,"date":"2023-10-05T21:02:09","date_gmt":"2023-10-05T13:02:09","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=44696"},"modified":"2023-10-05T21:02:09","modified_gmt":"2023-10-05T13:02:09","slug":"lzkwjwz","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/44696.html","title":{"rendered":"Linux\u67e5\u770b\u6587\u4ef6\u4f4d\u7f6e"},"content":{"rendered":"
Linux\u662f\u4e00\u79cd\u514d\u8d39\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5b83\u53ef\u4ee5\u5728\u5404\u79cd\u786c\u4ef6\u8bbe\u5907\u4e0a\u5b89\u88c5\uff0c\u4ece\u800c\u63d0\u4f9b\u8ba1\u7b97\u673a\u4f7f\u7528\u8005\u548c\u7ba1\u7406\u8005\u4eec\u66f4\u591a\u7684\u9009\u62e9\u3002Linux\u7cfb\u7edf\u4e2d\u6709\u5f88\u591a\u5f3a\u5927\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u5176\u4e2d\u4e4b\u4e00\u5c31\u662f\u67e5\u770b\u6587\u4ef6\u4f4d\u7f6e\u7684\u547d\u4ee4\uff0c\u5373\u201cwhereis\u201d\u547d\u4ee4\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u201cwhereis\u201d\u547d\u4ee4\u6765\u67e5\u770b\u6587\u4ef6\u4f4d\u7f6e\u3002<\/p>\n
whereis\u547d\u4ee4\u662fLinux\u4e2d\u7684\u4e00\u4e2a\u7cfb\u7edf\u547d\u4ee4\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u67e5\u627e\u7cfb\u7edf\u4e2d\u6240\u6709\u6587\u4ef6\u7684\u4f4d\u7f6e\u3002\u5b83\u53ef\u4ee5\u7528\u6765\u67e5\u627e\u53ef\u6267\u884c\u6587\u4ef6\u3001\u6e90\u4ee3\u7801\u6587\u4ef6\u3001man\u6587\u4ef6\u548c\u4fe1\u606f\u6587\u4ef6\u7684\u4f4d\u7f6e\u3002<\/p>\n
\u4f7f\u7528whereis\u547d\u4ee4\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165whereis\u547d\u4ee4\uff0c\u7136\u540e\u8ddf\u4e0a\u6587\u4ef6\u540d\u5373\u53ef\u3002\u4f8b\u5982\uff0c\u8981\u67e5\u627e\u6587\u4ef6\u201ctest.txt\u201d\uff0c\u53ef\u4ee5\u8f93\u5165\uff1a<\/p>\n
whereis test.txt <\/code><\/pre>\n \u5982\u679c\u6587\u4ef6\u5b58\u5728\uff0cwhereis\u547d\u4ee4\u5c06\u4f1a\u8fd4\u56de\u6587\u4ef6\u7684\u4f4d\u7f6e\uff0c\u4f8b\u5982\uff1a<\/p>\n
test.txt: \/home\/user\/test.txt <\/code><\/pre>\n \u5982\u679c\u6587\u4ef6\u4e0d\u5b58\u5728\uff0cwhereis\u547d\u4ee4\u5c06\u4f1a\u8fd4\u56de\u7a7a\u767d\uff1a<\/p>\n
test.txt: <\/code><\/pre>\n whereis\u547d\u4ee4\u7684\u5176\u4ed6\u7528\u6cd5<\/h3>\n
\u9664\u4e86\u67e5\u627e\u6587\u4ef6\u7684\u4f4d\u7f6e\uff0cwhereis\u547d\u4ee4\u8fd8\u53ef\u4ee5\u7528\u6765\u67e5\u627e\u53ef\u6267\u884c\u6587\u4ef6\u3001\u6e90\u4ee3\u7801\u6587\u4ef6\u548cman\u6587\u4ef6\u7684\u4f4d\u7f6e\u3002\u4f8b\u5982\uff0c\u8981\u67e5\u627e\u53ef\u6267\u884c\u6587\u4ef6\u201cls\u201d\uff0c\u53ef\u4ee5\u8f93\u5165\uff1a<\/p>\n
whereis ls <\/code><\/pre>\n whereis\u547d\u4ee4\u5c06\u4f1a\u8fd4\u56de\u6587\u4ef6\u7684\u4f4d\u7f6e\uff0c\u4f8b\u5982\uff1a<\/p>\n
ls: \/bin\/ls \/usr\/share\/man\/man1\/ls.1.gz <\/code><\/pre>\nwhereis\u547d\u4ee4\u7684\u4f18\u52bf<\/h2>\n
whereis\u547d\u4ee4\u7684\u6700\u5927\u4f18\u52bf\u5728\u4e8e\u5b83\u53ef\u4ee5\u5728\u7cfb\u7edf\u4e2d\u7684\u5404\u4e2a\u8def\u5f84\u4e2d\u67e5\u627e\u6587\u4ef6\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u67d0\u4e00\u4e2a\u8def\u5f84\u3002\u8fd9\u6837\uff0c\u5982\u679c\u6587\u4ef6\u4e0d\u5728\u9884\u671f\u7684\u8def\u5f84\u4e2d\uff0c\u4e5f\u53ef\u4ee5\u5728\u5176\u4ed6\u8def\u5f84\u4e2d\u627e\u5230\u5b83\u3002<\/p>\n
\u603b\u7ed3<\/h2>\n
\u672c\u6587\u4ecb\u7ecd\u4e86Linux\u4e2d\u7684whereis\u547d\u4ee4\uff0c\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528\u5b83\u6765\u67e5\u627e\u6587\u4ef6\u4f4d\u7f6e\u3002<\/strong>whereis\u547d\u4ee4\u7684\u4f18\u52bf\u5728\u4e8e\u5b83\u53ef\u4ee5\u5728\u7cfb\u7edf\u4e2d\u7684\u5404\u4e2a\u8def\u5f84\u4e2d\u67e5\u627e\u6587\u4ef6\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u67d0\u4e00\u4e2a\u8def\u5f84\u3002\u901a\u8fc7\u4f7f\u7528whereis\u547d\u4ee4\uff0c\u53ef\u4ee5\u66f4\u8f7b\u677e\u5730\u67e5\u627e\u6587\u4ef6\u4f4d\u7f6e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Linux\u662f\u4e00\u79cd\u514d\u8d39\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5b83\u53ef\u4ee5\u5728\u5404\u79cd\u786c\u4ef6\u8bbe\u5907\u4e0a\u5b89\u88c5\uff0c\u4ece\u800c\u63d0\u4f9b\u8ba1\u7b97\u673a\u4f7f\u7528\u8005\u548c\u7ba1\u7406\u8005\u4eec\u66f4\u591a\u7684\u9009\u62e9\u3002Linux\u7cfb\u7edf\u4e2d\u6709\u5f88\u591a\u5f3a\u5927\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u5176\u4e2d\u4e4b\u4e00\u5c31\u662f\u67e5\u770b\u6587\u4ef6\u4f4d\u7f6e\u7684\u547d<\/p>\n","protected":false},"author":1,"featured_media":4132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[305],"class_list":["post-44696","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dzjs"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/44696"}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=44696"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/44696\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=44696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=44696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=44696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}