{"id":3838,"date":"2019-07-21T23:47:20","date_gmt":"2019-07-21T15:47:20","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3838"},"modified":"2023-05-01T15:03:39","modified_gmt":"2023-05-01T07:03:39","slug":"type","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/type","title":{"rendered":"type\u547d\u4ee4 &#8211; \u67e5\u770b\u547d\u4ee4\u7c7b\u578b"},"content":{"rendered":"\n<p>type\u547d\u4ee4\u6765\u81ea\u82f1\u6587\u5355\u8bcd\u201c\u7c7b\u578b\u201d\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u67e5\u770b\u547d\u4ee4\u7c7b\u578b\uff0c\u5982\u9700\u533a\u5206\u67d0\u4e2a\u547d\u4ee4\u662fShell\u5185\u90e8\u6307\u4ee4\u8fd8\u662f\u5916\u90e8\u547d\u4ee4\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528type\u547d\u4ee4\u8fdb\u884c\u67e5\u770b\u3002<\/p>\n\n\n\n<p><strong>\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>type [\u53c2\u6570] \u547d\u4ee4\u540d\u79f0<\/p>\n\n\n\n<p><strong>\u5e38\u7528\u7c7b\u578b\uff1a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>builtin<\/td><td>\u5185\u90e8\u6307\u4ee4<\/td><\/tr><tr><td>file<\/td><td>\u6587\u4ef6<\/td><\/tr><tr><td>function<\/td><td>\u51fd\u6570<\/td><\/tr><tr><td>keyword<\/td><td>\u5173\u952e\u5b57<\/td><\/tr><tr><td>alias<\/td><td>\u522b\u540d<\/td><\/tr><tr><td>unfound<\/td><td>\u6ca1\u6709\u627e\u5230<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u53c2\u8003\u793a\u4f8b<\/strong><\/p>\n\n\n\n<p>\u67e5\u770b\u67d0\u6307\u5b9a\u522b\u540d\u547d\u4ee4\u7684\u7c7b\u578b\u4fe1\u606f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# <strong>type ls<\/strong>\nls is aliased to `ls --color=auto'<\/pre>\n\n\n\n<p>\u67e5\u770b\u67d0\u6307\u5b9aShell\u5185\u90e8\u6307\u4ee4\u7684\u7c7b\u578b\u4fe1\u606f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# <strong>type cd<\/strong>\ncd is a shell builtin<\/pre>\n\n\n\n<p>\u67e5\u770b\u67d0\u6307\u5b9a\u5173\u952e\u5b57\u7684\u7c7b\u578b\u4fe1\u606f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# <strong>type if<\/strong>\nif is a shell keyword<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>type\u547d\u4ee4\u6765\u81ea\u82f1\u6587\u5355\u8bcd\u201c\u7c7b\u578b\u201d\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u67e5\u770b\u547d\u4ee4\u7c7b\u578b\uff0c\u5982\u9700\u533a\u5206\u67d0\u4e2a\u547d\u4ee4\u662fShell\u5185\u90e8\u6307\u4ee4\u8fd8\u662f\u5916\u90e8\u547d\u4ee4\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-3838","post","type-post","status-publish","format-standard","hentry","category-system"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3838","targetHints":{"allow":["GET"]}}],"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":8,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3838\/revisions"}],"predecessor-version":[{"id":14671,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3838\/revisions\/14671"}],"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}]}}