{"id":5111,"date":"2019-10-18T18:48:59","date_gmt":"2019-10-18T10:48:59","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5111"},"modified":"2019-10-18T18:49:00","modified_gmt":"2019-10-18T10:49:00","slug":"apropos","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/apropos","title":{"rendered":"apropos\u547d\u4ee4 – \u5728whatis\u6570\u636e\u5e93\u4e2d\u67e5\u627e\u5b57\u7b26\u4e32"},"content":{"rendered":"\n

apropos\u547d\u4ee4\u5728\u4e00\u4e9b\u7279\u5b9a\u7684\u5305\u542b\u7cfb\u7edf\u547d\u4ee4\u7684\u7b80\u77ed\u63cf\u8ff0\u7684\u6570\u636e\u5e93\u6587\u4ef6\u91cc\u67e5\u627e\u5173\u952e\u5b57\uff0c\u7136\u540e\u628a\u7ed3\u679c\u9001\u5230\u6807\u51c6\u8f93\u51fa\u3002<\/p>\n\n\n\n

\u5982\u679c\u4f60\u4e0d\u77e5\u9053\u5b8c\u6210\u67d0\u4e2a\u7279\u5b9a\u4efb\u52a1\u6240\u9700\u8981\u547d\u4ee4\u7684\u540d\u79f0\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u5173\u952e\u5b57\u901a\u8fc7Linux apropos\u5b9e\u7528\u7a0b\u5e8f\u6765\u641c\u7d22\u5b83\u3002\u8be5\u5b9e\u7528\u7a0b\u5e8f\u53ef\u4ee5\u641c\u7d22\u5173\u952e\u5b57\u5e76\u4e14\u663e\u793a\u6240\u6709\u5305\u542b\u5339\u914d\u9879\u7684man\u9875\u9762\u7684\u7b80\u77ed\u63cf\u8ff0\u3002\u53e6\u5916\uff0c\u4f7f\u7528man\u5b9e\u7528\u7a0b\u5e8f\u548c-k\uff08\u5173\u952e\u5b57\uff09\u9009\u9879\uff0c\u53ef\u4ee5\u5f97\u5230\u548c\u7528Linux apropos\u5b9e\u7528\u7a0b\u5e8f\u76f8\u540c\u7684\u7ed3\u679c\uff08\u5b9e\u9645\u4e0a\u662f\u76f8\u540c\u7684\u547d\u4ee4\uff09\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>apropos [\u53c2\u6570] [\u5173\u952e\u5b57]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-d <\/td>\u8f93\u51fa\u8c03\u8bd5\u4fe1\u606f<\/td><\/tr>
-l<\/td>\u4e0d\u6839\u636e\u7ec8\u7aef\u5bbd\u5ea6\u7f29\u51cf\u8f93\u51fa <\/td><\/tr>
-w<\/td>\u5c06\u6bcf\u4e2akeyword\u4f5c\u4e3ashell\u6837\u5f0f\u7684\u901a\u914d\u7b26\u89e3\u91ca <\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u67e5\u627e\u624b\u518c\u9875\u540d\u5b57\u548c\u63cf\u8ff0\u4e2d\u5305\u542bemacs\u548cvi\u7684\u624b\u518c\u9875: <\/p>\n\n\n\n

[root@linuxcool ~]# apropos -a emacs vi<\/pre>\n\n\n\n

\u6253\u5370\u7248\u672c\u4fe1\u606f\u5e76\u9000\u51fa:<\/p>\n\n\n\n

[root@linuxcool ~]# apropos -V<\/pre>\n\n\n\n

\u6253\u5370\u5e2e\u52a9\u4fe1\u606f\u5e76\u9000\u51fa :<\/p>\n\n\n\n

[root@linuxcool ~]# apropos -h<\/pre>\n\n\n\n

\u67e5\u627e\u5305\u542bwho\u7684\u5173\u952e\u5b57\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# apropos who<\/pre>\n\n\n\n

\u4e0d\u6839\u636e\u7ec8\u7aef\u5bbd\u5ea6\u7f29\u51cf\u8f93\u51fa\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# apropos -l who<\/pre>\n","protected":false},"excerpt":{"rendered":"

apropos\u547d\u4ee4\u5728\u4e00\u4e9b\u7279\u5b9a\u7684\u5305\u542b\u7cfb\u7edf\u547d\u4ee4\u7684\u7b80\u77ed\u63cf\u8ff0\u7684\u6570\u636e\u5e93\u6587\u4ef6\u91cc\u67e5\u627e\u5173\u952e\u5b57\uff0c\u7136\u540e\u628a\u7ed3\u679c\u9001\u5230\u6807\u51c6\u8f93\u51fa\u3002 \u5982\u679c\u4f60 […]<\/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\/5111"}],"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=5111"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5111\/revisions"}],"predecessor-version":[{"id":5235,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5111\/revisions\/5235"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}