{"id":8490,"date":"2020-08-28T13:16:27","date_gmt":"2020-08-28T05:16:27","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8490"},"modified":"2020-08-28T13:16:27","modified_gmt":"2020-08-28T05:16:27","slug":"fgconsole","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/fgconsole","title":{"rendered":"fgconsole\u547d\u4ee4 – \u663e\u793a\u6d3b\u52a8\u7684\u865a\u62df\u7ec8\u7aef\u6570\u91cf"},"content":{"rendered":"\n

fgconsole\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u663e\u793a\u6d3b\u52a8\u7684\u865a\u62df\u7ec8\u7aef\u6570\u91cf\u3002<\/p>\n\n\n\n

\u5982\u679c\u6d3b\u52a8\u7684\u865a\u62df\u7ec8\u7aef\u4e3a\/dev\/ttyN\uff0c\u5219\u5728\u6807\u51c6\u8f93\u51fa\u4e0a\u663e\u793aN\u3002 \u5982\u679c\u63a7\u5236\u53f0\u662f\u4e32\u884c\u63a7\u5236\u53f0\uff0c\u5219\u6253\u5370\u201cserial\u201d\u3002<\/p>\n\n\n\n

\u5982\u679c\u5f53\u524d\u8fdb\u7a0b\u6709\u63a7\u5236\u7ec8\u7aef\u7684\u8bdd\uff0c\u90a3\u4e48\/dev\/tty\u5c31\u662f\u5f53\u524d\u8fdb\u7a0b\u7684\u63a7\u5236\u7ec8\u7aef\u7684\u8bbe\u5907\u7279\u6b8a\u6587\u4ef6\u3002\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u201dps \u2013ax\u201d\u6765\u67e5\u770b\u8fdb\u7a0b\u4e0e\u54ea\u4e2a\u63a7\u5236\u7ec8\u7aef\u76f8\u8fde\u3002\u5bf9\u4e8e\u4f60\u767b\u5f55\u7684shell\uff0c\/dev\/tty\u5c31\u662f\u4f60\u4f7f\u7528\u7684\u7ec8\u7aef\uff0c\u8bbe\u5907\u53f7\u662f(5,0)\u3002\u4f7f\u7528\u547d\u4ee4\u201dtty\u201d\u53ef\u4ee5\u67e5\u770b\u5b83 \u5177\u4f53\u5bf9\u5e94\u54ea\u4e2a\u5b9e\u9645\u7ec8\u7aef\u8bbe\u5907\u3002\/dev\/tty\u6709\u4e9b\u7c7b\u4f3c\u4e8e\u5230\u5b9e\u9645\u6240\u4f7f\u7528\u7ec8\u7aef\u8bbe\u5907\u7684\u4e00\u4e2a\u8054\u63a5\u3002<\/p>\n\n\n\n

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

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

-n<\/td>\u5c06\u663e\u793a\u4e0b\u4e00\u4e2a\u672a\u5206\u914d\u7684\u865a\u62df\u7ec8\u7aef\u3002\u6b63\u5e38\u60c5\u51b5\u4e0b\u5206\u914d6\u4e2a\u865a\u62df\u7ec8\u7aef\uff0c7\u53f7\u7528\u4e8eX<\/td><\/tr>
-h<\/td>\u5e2e\u52a9\u547d\u4ee4<\/td><\/tr>
-V<\/td>\u7248\u672c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u663e\u793a\u6d3b\u52a8\u7684\u865a\u62df\u7ec8\u7aef\u6570\u91cf\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# fgconsole<\/pre>\n\n\n\n

\u663e\u793a\u4e0b\u4e00\u4e2a\u672a\u5206\u914d\u7684\u865a\u62df\u7ec8\u7aef\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# fgconsole -n<\/pre>\n\n\n\n

\u67e5\u8be2\u547d\u4ee4\u7248\u672c\uff1a<\/p>\n\n\n\n

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

fgconsole\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u663e\u793a\u6d3b\u52a8\u7684\u865a\u62df\u7ec8\u7aef\u6570\u91cf\u3002 \u5982\u679c\u6d3b\u52a8\u7684\u865a\u62df\u7ec8\u7aef\u4e3a\/dev\/ttyN\uff0c\u5219\u5728\u6807\u51c6\u8f93 […]<\/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\/8490"}],"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=8490"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8490\/revisions"}],"predecessor-version":[{"id":8508,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8490\/revisions\/8508"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}