{"id":7687,"date":"2020-05-23T18:42:55","date_gmt":"2020-05-23T10:42:55","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7687"},"modified":"2020-05-23T18:42:56","modified_gmt":"2020-05-23T10:42:56","slug":"complete","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/complete","title":{"rendered":"complete\u547d\u4ee4 – \u81ea\u52a8\u8865\u5168\u58f0\u660e"},"content":{"rendered":"\n

complete\u547d\u4ee4\u662f\u58f0\u660e\u5bf9\u4e8e\u6bcf\u4e00\u4e2aNAME\u540d\u79f0\u5982\u4f55\u5b8c\u6210\u8bfb\u53d6\u53c2\u6570\u3002\u5982\u679c\u4e0d\u5e26\u9009\u9879\uff0c\u73b0\u6709\u7684\u8865\u5168\u58f0\u660e\u4f1a\u4ee5\u53ef\u4ee5\u91cd\u7528\u4e3a\u8f93\u5165\u7684\u683c\u5f0f\u6253\u5370\u51fa\u6765\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>complete [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-p<\/td>\u4ee5\u53ef\u91cd\u7528\u7684\u683c\u5f0f\u6253\u5370\u73b0\u6709\u7684\u8865\u5168\u58f0\u660e<\/td><\/tr>
-D<\/td>\u5bf9\u4e8e\u6ca1\u6709\u8865\u5168\u58f0\u660e\u5b9a\u4e49\u7684\u547d\u4ee4\uff0c\u8bbe\u5b9a\u9ed8\u8ba4\u7684\u8865\u5168\u52a8\u4f5c<\/td><\/tr>
-E<\/td>\u5bf9\u4e8e “empty” \u547d\u4ee4\u8bbe\u5b9a\u8865\u5168\u52a8\u4f5c\uff0c\u2014\u2014 \u5bf9\u4e8e\u7a7a\u884c\u7684\u8865\u5168<\/td><\/tr>
-r<\/td>\u5bf9\u4e8e\u6bcf\u4e2a NAME \u540d\u79f0\u5220\u9664\u8865\u5168\u58f0\u660e\uff0c\u6216\u8005\u5982\u679c\u6ca1\u6709\u63d0\u4f9b NAME\u540d\u79f0\uff0c\u5220\u9664\u6240\u6709\u7684\u8865\u5168\u58f0\u660e<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u4ee5\u53ef\u91cd\u7528\u7684\u683c\u5f0f\u6253\u5370\u73b0\u6709\u7684\u8865\u5168\u58f0\u660e\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# complete -p<\/pre>\n\n\n\n

\u5bf9\u4e8e\u6ca1\u6709\u8865\u5168\u58f0\u660e\u5b9a\u4e49\u7684\u547d\u4ee4\uff0c\u8bbe\u5b9a\u9ed8\u8ba4\u7684\u8865\u5168\u52a8\u4f5c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# complete -D<\/pre>\n\n\n\n

\u5bf9\u4e8e “empty” \u547d\u4ee4\u8bbe\u5b9a\u8865\u5168\u52a8\u4f5c\uff0c\u2014\u2014 \u5bf9\u4e8e\u7a7a\u884c\u7684\u8865\u5168\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# complete -E<\/pre>\n\n\n\n

\u5bf9\u4e8e\u6bcf\u4e2a NAME \u540d\u79f0\u5220\u9664\u8865\u5168\u58f0\u660e\uff0c\u6216\u8005\u5982\u679c\u6ca1\u6709\u63d0\u4f9b NAME\u540d\u79f0\uff0c\u5220\u9664\u6240\u6709\u7684\u8865\u5168\u58f0\u660e\uff1a<\/p>\n\n\n\n

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

complete\u547d\u4ee4\u662f\u58f0\u660e\u5bf9\u4e8e\u6bcf\u4e00\u4e2aNAME\u540d\u79f0\u5982\u4f55\u5b8c\u6210\u8bfb\u53d6\u53c2\u6570\u3002\u5982\u679c\u4e0d\u5e26\u9009\u9879\uff0c\u73b0\u6709\u7684\u8865\u5168\u58f0\u660e\u4f1a\u4ee5\u53ef\u4ee5\u91cd\u7528\u4e3a\u8f93 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7687"}],"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=7687"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7687\/revisions"}],"predecessor-version":[{"id":7750,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7687\/revisions\/7750"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}