{"id":98,"date":"2020-10-20T21:46:23","date_gmt":"2020-10-20T21:46:23","guid":{"rendered":"https:\/\/maboc.nl\/?p=98"},"modified":"2024-11-09T10:57:14","modified_gmt":"2024-11-09T10:57:14","slug":"tmux","status":"publish","type":"post","link":"https:\/\/maboc.nl\/?p=98","title":{"rendered":"tmux"},"content":{"rendered":"\r\n<p>Tmux is one of the tools I really like to install as soon as possible. It provides the possibility of loosing your connection whitout loosing all your sessions,<\/p>\r\n\r\n\r\n\r\n<p>If you start tmux, it starts a &#8220;virtual&#8221; terminal. If you loose your connection to the machine, the vitual terminal keeps running. As soon as you can reconnect you can re-attach to the virtual terminal.<\/p>\r\n\r\n\r\n\r\n<p>Tmux is available in major distributions, or at <a href=\"https:\/\/github.com\/tmux\/tmux\/wiki\" target=\"_blank\" rel=\"noreferrer noopener\">gi<\/a><a href=\"https:\/\/github.com\/tmux\/tmux\/wiki\" target=\"_blank\" rel=\"noreferrer noopener\">t<\/a><a href=\"https:\/\/github.com\/tmux\/tmux\/wiki\" target=\"_blank\" rel=\"noreferrer noopener\">hub<\/a>.<\/p>\r\n\r\n\r\n\r\n<p>Key commands:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Inside tmux\r\n<ul>\r\n<li>Ctrl-b c : new virtual teminal in the tmux session<\/li>\r\n<li>Ctrl-b d : detach from the tmux session<\/li>\r\n<li>Ctrl-b p : previous window in the tmux session<\/li>\r\n<li>Ctrl-b n : next window in the tmux session<\/li>\r\n<li>Ctrl-b &#8221; : Split the current window vertically<\/li>\r\n<li>Ctrl-b % : Split the current window horizontally<\/li>\r\n<li>Ctrl-b [ : Now you&#8217;re in scroll-mode. The arrow keys can be used for scrolling. q quits scroll-mode<\/li>\r\n<li>Ctrl-b &lt;arrow&gt; : navigate between panes (within awindow)<\/li>\r\n<li>Ctrl-b , : rename a window<\/li>\r\n<\/ul>\r\n<\/li>\r\n<li>Outside tmux\r\n<ul>\r\n<li>list-sessions : displays the tmux sessions on the box<\/li>\r\n<li>attach : attach to a session on the box\r\n<ul>\r\n<li>-t &lt;n&gt; : attach to session with number n<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p>&nbsp;<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Tmux is one of the tools I really like to install as soon as possible. It provides the possibility of loosing your connection whitout loosing all your sessions, If you start tmux, it starts a &#8220;virtual&#8221; terminal. If you loose your connection to the machine, the vitual terminal keeps running. As soon as you can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[16,17],"class_list":["post-98","post","type-post","status-publish","format-standard","hentry","category-tooling","tag-tmux","tag-tooling"],"_links":{"self":[{"href":"https:\/\/maboc.nl\/index.php?rest_route=\/wp\/v2\/posts\/98","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/maboc.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/maboc.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/maboc.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/maboc.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=98"}],"version-history":[{"count":7,"href":"https:\/\/maboc.nl\/index.php?rest_route=\/wp\/v2\/posts\/98\/revisions"}],"predecessor-version":[{"id":617,"href":"https:\/\/maboc.nl\/index.php?rest_route=\/wp\/v2\/posts\/98\/revisions\/617"}],"wp:attachment":[{"href":"https:\/\/maboc.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=98"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/maboc.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=98"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/maboc.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}