{"id":3768,"date":"2021-07-13T11:35:44","date_gmt":"2021-07-13T11:35:44","guid":{"rendered":"https:\/\/obambu.com\/guide\/?p=3768"},"modified":"2021-08-02T09:51:35","modified_gmt":"2021-08-02T09:51:35","slug":"tmux-cheat-sheet-guide-on-how-to-use-it","status":"publish","type":"post","link":"https:\/\/obambu.com\/guide\/tmux-cheat-sheet-guide-on-how-to-use-it\/","title":{"rendered":"Tmux cheat sheet | Guide on how to use it"},"content":{"rendered":"\n<p>Tmux stands for <strong>terminal multiplexer. <\/strong>It\u2019s a tool that lets you split a terminal window into many others. This allows you to finish your tasks much faster and manage multiple terminals at the same time to increase productivity and efficiency. In this article we\u00b4ll show you how to use the<strong> tmux cheat sheet<\/strong>. <\/p>\n\n\n\n<p>So, if you\u2019re a system administrator, listen up!<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to install Tmux?<\/h2>\n\n\n\n<p>Tmux is a very easy application to install. To do it, first you\u00b4ll have to access your <strong><a href=\"https:\/\/obambu.com\/en\/vps-server\/\" target=\"_blank\" rel=\"noreferrer noopener\">VPS<\/a> <\/strong>server. Then, you should <strong>add sudo<\/strong> to the command (installing Tmux requires admin privileges).<\/p>\n\n\n\n<p>First, run this command to<strong> install<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get install tmux<\/pre>\n\n\n\n<p>Then confirm the installed version to <strong>ensure it installed<\/strong> correctly:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tmux -V<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Tmux cheat sheet<\/h2>\n\n\n\n<p>The application should be ready to use. Now we\u00b4ll get into the cheat sheet and show you some basic commands you can use to get started using <strong>Tmux<\/strong>:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Starting\/ending sessions on Tmux<\/h3>\n\n\n\n<p>To <strong>start a new session<\/strong> you have to type:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tmux<\/pre>\n\n\n\n<p>Starting a sesi\u00f3n <strong>with a name<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tmux new -s [name]<\/pre>\n\n\n\n<p>Starting an <strong>attached session:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tmux a #<\/pre>\n\n\n\n<p>If the session has a name:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tmux attach -t [name]<\/pre>\n\n\n\n<p>To <strong>list all Tmux sessions<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tmux ls<\/pre>\n\n\n\n<p><strong>Exit<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">exit<\/pre>\n\n\n\n<p><strong>Kill session:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tmux kill-session -t [name]<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Window operating<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Command<\/strong><\/td><td><strong>Description<\/strong>                                                                                         <\/td><\/tr><\/thead><tbody><tr><td>w<\/td><td>list windows and select one<\/td><\/tr><tr><td>,<\/td><td>rename window<\/td><\/tr><tr><td>c or N<\/td><td>create new window<\/td><\/tr><tr><td>n<\/td><td>go to next window<\/td><\/tr><tr><td>p<\/td><td>go to previous window<\/td><\/tr><tr><td>f<\/td><td>find window<\/td><\/tr><tr><td>&amp;<\/td><td>kill window<\/td><\/tr><tr><td>0-9<\/td><td>go to window 0-9<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Pane operating<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Command<\/strong><\/td><td><strong>Description<\/strong>                                                                                            <\/td><\/tr><\/thead><tbody><tr><td>%<\/td><td>vertical split<\/td><\/tr><tr><td>\u2018\u2019<\/td><td>horizontal split<\/td><\/tr><tr><td>x<\/td><td>kill pane<\/td><\/tr><tr><td>o<\/td><td>go to next pane<\/td><\/tr><tr><td>h, j, k, l<\/td><td>go to next pane in vim-style<\/td><\/tr><tr><td>z<\/td><td>toggle full-screen mode for current pane<\/td><\/tr><tr><td>arrow keys<\/td><td>resize the pane<\/td><\/tr><tr><td>q<\/td><td>show pane-numbers<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>After knowing about these simple commands, your ready to use <strong>Tmux<\/strong> to operate your terminal more productively. Although this is just the basic you need for everyday work, you can learn more complex commands on the tmux <strong><a href=\"https:\/\/tmuxguide.readthedocs.io\/en\/latest\/tmux\/tmux.html\" target=\"_blank\" rel=\"noreferrer noopener\">official guide<\/a>.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tmux stands for terminal multiplexer. It\u2019s a tool that lets you split a terminal window into many others. This allows you to finish your tasks much faster and manage multiple terminals at the same time to increase productivity and efficiency. In this article we\u00b4ll show you how to use the tmux cheat sheet. So, if<\/p>\n","protected":false},"author":2,"featured_media":3771,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"post-3768","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-obambu-tutorials"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.6.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Tmux cheat sheet | Guide on how to use it - Obambu Guide | Navigating the Web Hosting World<\/title>\n<meta name=\"description\" content=\"Tmux is a tool that lets you split terminal windows to maximize productivity. Here we\u00b4ll show you how to use it via the tmux cheat sheet\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/obambu.com\/guide\/tmux-cheat-sheet-guide-on-how-to-use-it\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tmux cheat sheet | Guide on how to use it - Obambu Guide | Navigating the Web Hosting World\" \/>\n<meta property=\"og:description\" content=\"Tmux is a tool that lets you split terminal windows to maximize productivity. Here we\u00b4ll show you how to use it via the tmux cheat sheet\" \/>\n<meta property=\"og:url\" content=\"https:\/\/obambu.com\/guide\/tmux-cheat-sheet-guide-on-how-to-use-it\/\" \/>\n<meta property=\"og:site_name\" content=\"Obambu Guide | Navigating the Web Hosting World\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-13T11:35:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-02T09:51:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/obambu.com\/guide\/wp-content\/uploads\/2021\/07\/bfrqnkbulyq.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1600\" \/>\n\t<meta property=\"og:image:height\" content=\"1067\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/obambu.com\/guide\/#website\",\"url\":\"https:\/\/obambu.com\/guide\/\",\"name\":\"Obambu Guide | Navigating the Web Hosting World\",\"description\":\"Explore dozens of tutorials and how-to guides on Obambu Guide. Learn, Build, Grow!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/obambu.com\/guide\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/obambu.com\/guide\/tmux-cheat-sheet-guide-on-how-to-use-it\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/obambu.com\/guide\/wp-content\/uploads\/2021\/07\/bfrqnkbulyq.jpg\",\"contentUrl\":\"https:\/\/obambu.com\/guide\/wp-content\/uploads\/2021\/07\/bfrqnkbulyq.jpg\",\"width\":1600,\"height\":1067,\"caption\":\"tmux cheat sheet\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/obambu.com\/guide\/tmux-cheat-sheet-guide-on-how-to-use-it\/#webpage\",\"url\":\"https:\/\/obambu.com\/guide\/tmux-cheat-sheet-guide-on-how-to-use-it\/\",\"name\":\"Tmux cheat sheet | Guide on how to use it - Obambu Guide | Navigating the Web Hosting World\",\"isPartOf\":{\"@id\":\"https:\/\/obambu.com\/guide\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/obambu.com\/guide\/tmux-cheat-sheet-guide-on-how-to-use-it\/#primaryimage\"},\"datePublished\":\"2021-07-13T11:35:44+00:00\",\"dateModified\":\"2021-08-02T09:51:35+00:00\",\"author\":{\"@id\":\"https:\/\/obambu.com\/guide\/#\/schema\/person\/7cfedd97f012c03c8c95528885e359e2\"},\"description\":\"Tmux is a tool that lets you split terminal windows to maximize productivity. Here we\\u00b4ll show you how to use it via the tmux cheat sheet\",\"breadcrumb\":{\"@id\":\"https:\/\/obambu.com\/guide\/tmux-cheat-sheet-guide-on-how-to-use-it\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/obambu.com\/guide\/tmux-cheat-sheet-guide-on-how-to-use-it\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/obambu.com\/guide\/tmux-cheat-sheet-guide-on-how-to-use-it\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/obambu.com\/guide\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tmux cheat sheet | Guide on how to use it\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/obambu.com\/guide\/#\/schema\/person\/7cfedd97f012c03c8c95528885e359e2\",\"name\":\"Alejandro Prieto\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/obambu.com\/guide\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/obambu.com\/guide\/wp-content\/uploads\/2021\/07\/20200731_145844.jpg\",\"contentUrl\":\"https:\/\/obambu.com\/guide\/wp-content\/uploads\/2021\/07\/20200731_145844.jpg\",\"caption\":\"Alejandro Prieto\"},\"url\":\"https:\/\/obambu.com\/guide\/author\/alejandro\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/posts\/3768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/comments?post=3768"}],"version-history":[{"count":2,"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/posts\/3768\/revisions"}],"predecessor-version":[{"id":3888,"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/posts\/3768\/revisions\/3888"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/media\/3771"}],"wp:attachment":[{"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/media?parent=3768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/categories?post=3768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/tags?post=3768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}