{"id":2366,"date":"2019-05-27T00:06:47","date_gmt":"2019-05-26T16:06:47","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=2366"},"modified":"2019-05-27T00:06:49","modified_gmt":"2019-05-26T16:06:49","slug":"resize","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/resize","title":{"rendered":"resize\u547d\u4ee4 – \u8bbe\u7f6e\u7ec8\u7aef\u673a\u89c6\u7a97\u7684\u5927\u5c0f"},"content":{"rendered":"\n
resize\u547d\u4ee4\u8bbe\u7f6e\u7ec8\u7aef\u673a\u89c6\u7a97\u7684\u5927\u5c0f\u3002\u6267\u884cresize\u6307\u4ee4\u53ef\u8bbe\u7f6e\u865a\u62df\u7ec8\u7aef\u673a\u7684\u89c6\u7a97\u5927\u5c0f\u3002 <\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>resize [\u53c2\u6570]<\/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 \u4f7f\u7528 C shell\uff1a <\/p>\n\n\n\n \u4f7f\u7528 Bourne shell \uff1a<\/p>\n\n\n\n \u8bbe\u7f6e\u6307\u5b9a\u5927\u5c0f \uff1a<\/p>\n\n\n\n resize\u547d\u4ee4\u8bbe\u7f6e\u7ec8\u7aef\u673a\u89c6\u7a97\u7684\u5927\u5c0f\u3002\u6267\u884cresize\u6307\u4ee4\u53ef\u8bbe\u7f6e\u865a\u62df\u7ec8\u7aef\u673a\u7684\u89c6\u7a97\u5927\u5c0f\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1aresize […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2366"}],"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=2366"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2366\/revisions"}],"predecessor-version":[{"id":2665,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2366\/revisions\/2665"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=2366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=2366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=2366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-c\u00a0 <\/td> \u5c31\u7b97\u7528\u6237\u73af\u5883\u5e76\u975eC Shell\uff0c\u4e5f\u7528C Shell\u6307\u4ee4\u6539\u53d8\u89c6\u7a97\u5927\u5c0f<\/td><\/tr> -s <\/td> \u8bbe\u7f6e\u7ec8\u7aef\u673a\u89c6\u7a97\u7684\u5782\u76f4\u9ad8\u5ea6\u548c\u6c34\u5e73\u5bbd\u5ea6<\/td><\/tr> -u\u00a0 <\/td> \u5c31\u7b97\u7528\u6237\u73af\u5883\u5e76\u975eBourne Shell\uff0c\u4e5f\u7528Bourne Shell\u6307\u4ee4\u6539\u53d8\u89c6\u7a97\u5927\u5c0f <\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# resize -c set noglob; \nsetenv COLUMNS '99'; \nsetenv LINES '34'; \nunset noglob; <\/pre>\n\n\n\n
[root@linuxcool ~]# resize -u COLUMNS=99; \nLINES=34; \nexport COLUMNS LINES; <\/pre>\n\n\n\n
[root@linuxcool ~]# resize -s 80 160 <\/pre>\n","protected":false},"excerpt":{"rendered":"