{"id":5879,"date":"2019-12-23T14:43:22","date_gmt":"2019-12-23T06:43:22","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5879"},"modified":"2020-05-05T16:04:39","modified_gmt":"2020-05-05T08:04:39","slug":"command","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/command","title":{"rendered":"command\u547d\u4ee4 – \u8c03\u7528\u5e76\u6267\u884c\u6307\u5b9a\u7684\u547d\u4ee4"},"content":{"rendered":"\n

command\u547d\u4ee4\u8c03\u7528\u6307\u5b9a\u7684\u6307\u4ee4\u5e76\u6267\u884c\uff0c\u547d\u4ee4\u6267\u884c\u65f6\u4e0d\u67e5\u8be2shell\u51fd\u6570\u3002command\u547d\u4ee4\u53ea\u80fd\u591f\u6267\u884cshell\u5185\u90e8\u7684\u547d\u4ee4\u3002 <\/p>\n\n\n\n

\u5f53\u7cfb\u7edf\u5185\u5b9a\u4e49\u4e86\u4e0elinux\u547d\u4ee4\u76f8\u540c\u7684\u51fd\u6570\u65f6\uff0c\u4f7f\u7528command\u547d\u4ee4\u5ffd\u7565shell\u51fd\u6570\uff0c\u800c\u6267\u884c\u76f8\u5e94\u7684linux\u547d\u4ee4\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f:<\/strong> command [\u53c2\u6570] [\u547d\u4ee4]<\/p>\n\n\n\n

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

-p<\/td>\u4f7f\u7528\u6b63\u786e\u7684\u8def\u5f84\u641c\u7d22\u547d\u4ee4<\/td><\/tr>
-v<\/td>\u4e0d\u6267\u884c\u547d\u4ee4\uff0c\u4f46\u641c\u7d22\u547d\u4ee4\u548c\u6253\u5370\u4e0d\u6267\u884c\u547d\u4ee4<\/td><\/tr>
-V<\/td>\u4e0d\u6267\u884c\u547d\u4ee4\uff0c\u800c\u662f\u641c\u7d22\u547d\u4ee4\u5e76\u6253\u5370\u547d\u4ee4\u641c\u7d22\u7684\u7cbe\u7ec6\u5ea6<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u5ffd\u7565fdisk\u51fd\u6570\uff0c\u8c03\u7528\u8be5\u547d\u4ee4\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# command fdisk -l<\/pre>\n\n\n\n

\u4f7f\u7528command\u547d\u4ee4\u8c03\u7528\u6267\u884cecho\u547d\u4ee4\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# command echo Linuxcool\nLinuxcool<\/pre>\n\n\n\n

\u4f7f\u7528\u6b63\u786e\u7684\u8def\u5f84\u641c\u7d22\u547d\u4ee4\uff1a<\/p>\n\n\n\n

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

command\u547d\u4ee4\u8c03\u7528\u6307\u5b9a\u7684\u6307\u4ee4\u5e76\u6267\u884c\uff0c\u547d\u4ee4\u6267\u884c\u65f6\u4e0d\u67e5\u8be2shell\u51fd\u6570\u3002command\u547d\u4ee4\u53ea\u80fd\u591f\u6267\u884cshell […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5879"}],"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=5879"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5879\/revisions"}],"predecessor-version":[{"id":7491,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5879\/revisions\/7491"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}