{"id":240,"date":"2021-07-30T01:18:00","date_gmt":"2021-07-30T01:18:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=240"},"modified":"2021-07-30T01:18:00","modified_gmt":"2021-07-30T01:18:00","slug":"240","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/07\/30\/240\/","title":{"rendered":"\u4f7f\u7528 tmux \u76d1\u63a7\u670d\u52a1\u5668\u72b6\u6001"},"content":{"rendered":"<p><a href=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/07\/2526248639.png\"><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/07\/2526248639.png\" alt=\"tmux.png\" title=\"tmux.png\"><\/a><\/p>\n<ul>\n<li>Linux \u670d\u52a1\u5668\u6211\u4eec\u5929\u5929\u5728\u4f7f\u7528\uff0c\u7279\u522b\u662f \u7231\u6298\u817e \u66f4\u662f\u5982\u6b64\u3002\u4e3a\u4e86\u4fdd\u8bc1\u670d\u52a1\u5668\u7684\u5b89\u5168\u4e0e\u6027\u80fd\uff0c\u6211\u4eec\u7ecf\u5e38\u9700\u8981\u76d1\u63a7\u670d\u52a1\u5668\u7684\u4e00\u4e9b\u72b6\u6001\uff0c\u4ee5\u4fdd\u8bc1\u5de5\u4f5c\u80fd\u987a\u5229\u5f00\u5c55\u3002<\/li>\n<li>tmux\u662f\u4e00\u4e2a\u5f00\u6e90\u5de5\u5177\uff0c\u7528\u4e8e\u5728\u4e00\u4e2a\u7ec8\u7aef\u7a97\u53e3\u4e2d\u8fd0\u884c\u591a\u4e2a\u7ec8\u7aef\u4f1a\u8bdd\u3002\u672c\u6587\u4ecb\u7ecd\u7684\u51e0\u4e2a\u547d\u4ee4\uff0c\u4e0d\u4ec5\u4ec5\u9002\u7528\u4e8e\u670d\u52a1\u5668\u76d1\u63a7\uff0c\u4e5f\u9002\u7528\u4e8e\u6211\u4eec\u65e5\u5e38\u60c5\u51b5\u4e0b\u7684\u5b66\u4e60\u7f16\u7a0b\u548c\u8c03\u8bd5\u7a0b\u5e8f\u3002<\/li>\n<\/ul>\n<h2>Linux \u7ec8\u7aef \u4f7f\u7528 tmux \u5206\u5c4f<\/h2>\n<ul>\n<li>\n<p>\u5b89\u88c5tmux\u5de5\u5177 \u548c htop<\/p>\n<p>apt-get install tmux htop<\/p>\n<\/li>\n<li>\u4f7f\u7528\u5de5\u5177 tmux \u5206\u5c4f, \u6bcf\u6b21\u90fd\u8981\u5148\u6309 Ctrl+b<\/li>\n<\/ul>\n<pre><code>\u8f93\u5165\u547d\u4ee4 tmux \u4f7f\u7528\u5de5\u5177\n\u4e0a\u4e0b\u5206\u5c4f\uff1aCtrl+b \u518d\u6309 \u201c\n\u5de6\u53f3\u5206\u5c4f\uff1aCtrl+b \u518d\u6309 %\n\u5207\u6362\u5c4f\u5e55\uff1aCtrl+b \u518d\u6309o\n\u5173\u95ed\u4e00\u4e2a\u7ec8\u7aef\uff1aCtrl+b \u518d\u6309x\n\u4e0a\u4e0b\u5206\u5c4f\u4e0e\u5de6\u53f3\u5206\u5c4f\u5207\u6362\uff1a Ctrl+b \u518d\u6309\u7a7a\u683c\u952e<\/code><\/pre>\n<ul>\n<li>tmux \u5176\u4ed6\u64cd\u4f5c<\/li>\n<\/ul>\n<pre><code>\u53ef\u4ee5\u4f7f\u7528 Ctrl+b \u518d\u6309 d \u9000\u51fa tmux \u7ec8\u7aef\uff0c\u5e76\u4fdd\u5b58\u5f53\u524d\u4f1a\u8bdd\u3002\ntmux\u7a97\u53e3\u9009\u62e9\uff1aCtrl+b \u518d\u6309 \u2190\u2191\u2192\u2193\u5149\u6807\u952e\u9009\u62e9\nCtrl+b c   \u521b\u5efa\u65b0\u7a97\u53e3(\u684c\u9762)\nCtrl+b 0~9 \u9009\u62e9\u51e0\u53f7\u7a97\u53e3(\u684c\u9762)\nCtrl+b ? \u663e\u793a\u5feb\u6377\u952e\u5e2e\u52a9\nCtrl+b C-o \u8c03\u6362\u7a97\u53e3\u4f4d\u7f6e\uff0c\u7c7b\u4f3c\u4e0evim \u91cc\u7684C-w\nCtrl+b \u7a7a\u683c\u952e \u91c7\u7528\u4e0b\u4e00\u4e2a\u5185\u7f6e\u5e03\u5c40\nCtrl+b ! \u628a\u5f53\u524d\u7a97\u53e3\u53d8\u4e3a\u65b0\u7a97\u53e3\nCtrl+b \" \u6a21\u5411\u5206\u9694\u7a97\u53e3\nCtrl+b % \u7eb5\u5411\u5206\u9694\u7a97\u53e3\nCtrl+b q \u663e\u793a\u5206\u9694\u7a97\u53e3\u7684\u7f16\u53f7\nCtrl+b o \u8df3\u5230\u4e0b\u4e00\u4e2a\u5206\u9694\u7a97\u53e3\nCtrl+b \u4e0a\u4e0b\u952e \u4e0a\u4e00\u4e2a\u53ca\u4e0b\u4e00\u4e2a\u5206\u9694\u7a97\u53e3\nCtrl+b ALT-\u65b9\u5411\u952e \u8c03\u6574\u5206\u9694\u7a97\u53e3\u5927\u5c0f\nCtrl+b n \u9009\u62e9\u4e0b\u4e00\u4e2a\u7a97\u53e3\nCtrl+b l \u5207\u6362\u5230\u6700\u540e\u4f7f\u7528\u7684\u7a97\u53e3\nCtrl+b p \u9009\u62e9\u524d\u4e00\u4e2a\u7a97\u53e3\nCtrl+b w \u4ee5\u83dc\u5355\u65b9\u5f0f\u663e\u793a\u53ca\u9009\u62e9\u7a97\u53e3\nCtrl+b t \u663e\u793a\u65f6\u949f\nCtrl+b ; \u5207\u6362\u5230\u6700\u540e\u4e00\u4e2a\u4f7f\u7528\u7684\u9762\u677f\nCtrl+b x \u5173\u95ed\u9762\u677f\nCtrl+b &amp; \u5173\u95ed\u7a97\u53e3\nCtrl+b s \u4ee5\u83dc\u5355\u65b9\u5f0f\u663e\u793a\u548c\u9009\u62e9\u4f1a\u8bdd\nCtrl+b d \u9000\u51fatumx\uff0c\u5e76\u4fdd\u5b58\u5f53\u524d\u4f1a\u8bdd\uff0c\u8fd9\u65f6\uff0c\n      tmux\u4ecd\u5728\u540e\u53f0\u8fd0\u884c\uff0c\u53ef\u4ee5\u901a\u8fc7\n      tmux attach\u8fdb\u5165 \u5230\u6307\u5b9a\u7684\u4f1a\u8bdd\n<\/code><\/pre>\n<h2>tmux \u542f\u7528\u9f20\u6807\u64cd\u4f5c\uff0c\u53ef\u4ee5\u7528\u7528\u6765\u8c03\u6574\u548c\u5207\u6362\u7a97\u53e3<\/h2>\n<ul>\n<li>\n<p>.tmux.conf  \u8bbe\u5b9a<\/p>\n<pre><code># https:\/\/www.youtube.com\/watch?v=xTplsyQaGFs\n# tmux \u542f\u7528\u9f20\u6807\u64cd\u4f5c\nsetw -g mouse\nset-option -g history-limit 20000\nset-option -g mouse on\nbind -n WheelUpPane select-pane -t= ; copy-mode -e ; send-keys -M\nbind -n WheelDownPane select-pane -t= ; send-keys -M<\/code><\/pre>\n<\/li>\n<\/ul>\n<h2>tmux_for_windows     <a href=\"https:\/\/github.com\/hongwenjun\/tmux_for_windows\">https:\/\/github.com\/hongwenjun\/tmux_for_windows<\/a><\/h2>\n<p>tmux\u662f\u4e00\u4e2a\u5f00\u6e90\u5de5\u5177\uff0c\u7528\u4e8e\u5728\u4e00\u4e2a\u7ec8\u7aef\u7a97\u53e3\u4e2d\u8fd0\u884c\u591a\u4e2a\u7ec8\u7aef\u4f1a\u8bdd\u3002\u672c\u5de5\u5177\u4ecemsys2\u91cc\u63d0\u53d6\uff0c\u53ef\u4ee5\u5728Git for Windows\u7684Git Bash (MingW64)\u4e0b\u6b63\u5e38\u4f7f\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux \u670d\u52a1\u5668\u6211\u4eec\u5929\u5929\u5728\u4f7f\u7528\uff0c\u7279\u522b\u662f \u7231\u6298\u817e \u66f4\u662f\u5982\u6b64\u3002\u4e3a\u4e86\u4fdd\u8bc1\u670d\u52a1\u5668\u7684\u5b89\u5168\u4e0e\u6027\u80fd\uff0c\u6211\u4eec\u7ecf\u5e38\u9700\u8981 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[23,22],"class_list":["post-240","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux","tag-tmux"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=240"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/240\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}