{"id":102,"date":"2022-11-17T13:46:29","date_gmt":"2022-11-17T12:46:29","guid":{"rendered":"http:\/\/wp.famlarsson.net\/?p=102"},"modified":"2022-11-18T16:50:41","modified_gmt":"2022-11-18T15:50:41","slug":"tmux","status":"publish","type":"post","link":"https:\/\/wp.famlarsson.net\/?p=102","title":{"rendered":"tmux"},"content":{"rendered":"\n<p>Anv\u00e4nds f\u00f6r att skapa en terminalmultiplexer med m\u00f6jlighet att ha flera sessioner ig\u00e5ng samtidigt och som k\u00f6rs i bakgrunden. Du kan sedan koppla upp dig mot en session som k\u00f6rs i bakgrunden via terminalen.<\/p>\n\n\n\n<p><strong>Stara en ny session med sifferidentifikator:<\/strong><\/p>\n\n\n\n<p>$ tmux <\/p>\n\n\n\n<p>eller med sessionsnamn:<\/p>\n\n\n\n<p>$ tmux new -s session_name<\/p>\n\n\n\n<p><strong>\u00c5teranslut<\/strong><\/p>\n\n\n\n<p>Lista aktiva sessioner<\/p>\n\n\n\n<p>$ tmux ls<\/p>\n\n\n\n<p>\u00c5teranslut:<\/p>\n\n\n\n<p>tmux attach-session -t 0<\/p>\n\n\n\n<p><strong>Kommandon:<\/strong><\/p>\n\n\n\n<p><code>Ctrl+b<\/code>&nbsp;<code>d<\/code>     -Koppla l\u00f6s fr\u00e5n session<\/p>\n\n\n\n<p><\/p>\n\n\n\n<ul><li><code>Ctrl+b<\/code>&nbsp;<code>c<\/code>&nbsp;Create a new window (with shell)<\/li><li><code>Ctrl+b<\/code>&nbsp;<code>w<\/code>&nbsp;Choose window from a list<\/li><li><code>Ctrl+b<\/code>&nbsp;<code>0<\/code>&nbsp;Switch to window 0 (by number )<\/li><li><code>Ctrl+b<\/code>&nbsp;<code>,<\/code>&nbsp;Rename the current window<\/li><li><code>Ctrl+b<\/code>&nbsp;<code>%<\/code>&nbsp;Split current pane horizontally into two panes<\/li><li><code>Ctrl+b<\/code>&nbsp;<code>\"<\/code>&nbsp;Split current pane vertically into two panes<\/li><li><code>Ctrl+b<\/code>&nbsp;<code>o<\/code>&nbsp;Go to the next pane<\/li><li><code>Ctrl+b<\/code>&nbsp;<code>;<\/code>&nbsp;Toggle between the current and previous pane<\/li><li><code>Ctrl+b<\/code>&nbsp;<code>x<\/code>&nbsp;Close the current pane<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Anv\u00e4nds f\u00f6r att skapa en terminalmultiplexer med m\u00f6jlighet att ha flera sessioner ig\u00e5ng samtidigt och som k\u00f6rs i bakgrunden. Du kan sedan koppla upp dig mot en session som k\u00f6rs i bakgrunden via terminalen. Stara en ny session med sifferidentifikator: $ tmux eller med sessionsnamn: $ tmux new -s session_name \u00c5teranslut Lista aktiva sessioner $ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/wp.famlarsson.net\/index.php?rest_route=\/wp\/v2\/posts\/102"}],"collection":[{"href":"https:\/\/wp.famlarsson.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.famlarsson.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.famlarsson.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.famlarsson.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=102"}],"version-history":[{"count":2,"href":"https:\/\/wp.famlarsson.net\/index.php?rest_route=\/wp\/v2\/posts\/102\/revisions"}],"predecessor-version":[{"id":104,"href":"https:\/\/wp.famlarsson.net\/index.php?rest_route=\/wp\/v2\/posts\/102\/revisions\/104"}],"wp:attachment":[{"href":"https:\/\/wp.famlarsson.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.famlarsson.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.famlarsson.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}