{"id":3838,"date":"2019-07-21T23:47:20","date_gmt":"2019-07-21T15:47:20","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3838"},"modified":"2019-07-21T23:47:20","modified_gmt":"2019-07-21T15:47:20","slug":"type","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/type","title":{"rendered":"type\u547d\u4ee4 – \u663e\u793a\u6307\u5b9a\u547d\u4ee4\u7684\u7c7b\u578b"},"content":{"rendered":"\n

type\u547d\u4ee4\u7528\u6765\u663e\u793a\u6307\u5b9a\u547d\u4ee4\u7684\u7c7b\u578b\uff0c\u5224\u65ad\u7ed9\u51fa\u7684\u6307\u4ee4\u662f\u5185\u90e8\u6307\u4ee4\u8fd8\u662f\u5916\u90e8\u6307\u4ee4\u3002<\/p>\n\n\n\n

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

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
lias<\/td>\u522b\u540d<\/td><\/tr>
keyword<\/td>\u5173\u952e\u5b57\uff0cShell\u4fdd\u7559\u5b57<\/td><\/tr>
function<\/td>\u51fd\u6570\uff0cShell\u51fd\u6570<\/td><\/tr>
builtin<\/td>\u5185\u5efa\u547d\u4ee4\uff0cShell\u5185\u5efa\u547d\u4ee4<\/td><\/tr>
file<\/td>\u6587\u4ef6\uff0c\u78c1\u76d8\u6587\u4ef6\uff0c\u5916\u90e8\u547d\u4ee4<\/td><\/tr>
unfound<\/td>\u6ca1\u6709\u627e\u5230<\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u522b\u540d\u547d\u4ee4\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# type ls\nls is aliased to `ls --color=auto'<\/pre>\n\n\n\n

\u5185\u5efa\u547d\u4ee4\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# type cd\ncd is a shell builtin<\/pre>\n\n\n\n

\u5173\u952e\u5b57\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# type if\nif is a shell keyword<\/pre>\n","protected":false},"excerpt":{"rendered":"

type\u547d\u4ee4\u7528\u6765\u663e\u793a\u6307\u5b9a\u547d\u4ee4\u7684\u7c7b\u578b\uff0c\u5224\u65ad\u7ed9\u51fa\u7684\u6307\u4ee4\u662f\u5185\u90e8\u6307\u4ee4\u8fd8\u662f\u5916\u90e8\u6307\u4ee4\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1atype [\u53c2\u6570] [\u547d […]<\/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\/3838"}],"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=3838"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3838\/revisions"}],"predecessor-version":[{"id":4085,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3838\/revisions\/4085"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}