{"id":6505,"date":"2020-01-21T11:12:08","date_gmt":"2020-01-21T03:12:08","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6505"},"modified":"2020-01-21T16:48:17","modified_gmt":"2020-01-21T08:48:17","slug":"printenv","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/printenv","title":{"rendered":"printenv\u547d\u4ee4 – \u663e\u793a\u6307\u5b9a\u7684\u73af\u5883\u53d8\u91cf\u7684\u503c"},"content":{"rendered":"\n
printenv\u547d\u4ee4\u663e\u793a\u6307\u5b9a\u7684\u73af\u5883\u53d8\u91cf\u7684\u503c\uff0c\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u53d8\u91cf\uff0c\u5219\u6253\u5370\u51fa\u6240\u6709\u53d8\u91cf\u7684\u540d\u79f0\u548c\u503c\u3002 \u901a\u8fc7printenv\u547d\u4ee4\uff0c\u6211\u4eec\u53ef\u4ee5\u67e5\u770b\u5230\u5f53\u524d\u7684shell\uff0c\u548cshell\u7684\u73af\u5883\u53d8\u91cf\uff0c\u548c\u5176\u5b83\u4e00\u4e9b\u5e38\u89c1\u7684\u914d\u7f6e \u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>printenv [\u53c2\u6570] [\u53d8\u91cf]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u663e\u793a\u6240\u6709\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n\n\n\n \u663e\u793a\u73af\u5883\u53d8\u91cf LANG \u7684\u503c\uff1a<\/p>\n\n\n\n \u663e\u793a\u6b64\u5e2e\u52a9\u4fe1\u606f\u5e76\u9000\u51fa\uff1a<\/p>\n\n\n\n \u663e\u793a\u7248\u672c\u4fe1\u606f\u5e76\u9000\u51fa\uff1a<\/p>\n\n\n\n \u663e\u793a\u73af\u5883\u53d8\u91cf LANG \u7684\u503c,\u4ee5\u7a7a\u5b57\u7b26\u800c\u975e\u65b0\u884c\u7b26\u7ed3\u675f\u6bcf\u4e00\u8f93\u51fa\u884c\uff1a<\/p>\n\n\n\n printenv\u547d\u4ee4\u663e\u793a\u6307\u5b9a\u7684\u73af\u5883\u53d8\u91cf\u7684\u503c\uff0c\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u53d8\u91cf\uff0c\u5219\u6253\u5370\u51fa\u6240\u6709\u53d8\u91cf\u7684\u540d\u79f0\u548c\u503c\u3002 \u901a\u8fc7printen […]<\/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\/6505"}],"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=6505"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6505\/revisions"}],"predecessor-version":[{"id":6565,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6505\/revisions\/6565"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}--null<\/td> \u4ee5\u7a7a\u5b57\u7b26\u800c\u975e\u65b0\u884c\u7b26\u7ed3\u675f\u6bcf\u4e00\u8f93\u51fa\u884c <\/td><\/tr> --help<\/td> \u663e\u793a\u6b64\u5e2e\u52a9\u4fe1\u606f\u5e76\u9000\u51fa <\/td><\/tr> --version<\/td> \u663e\u793a\u7248\u672c\u4fe1\u606f\u5e76\u9000\u51fa <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# printenv<\/pre>\n\n\n\n
[root@linuxcool ~]# printenv LANG<\/pre>\n\n\n\n
[root@linuxcool ~]# printenv --help<\/pre>\n\n\n\n
[root@linuxcool ~]# printenv --version<\/pre>\n\n\n\n
[root@linuxcool ~]# printenv --null LANG <\/pre>\n","protected":false},"excerpt":{"rendered":"