{"id":98130,"date":"2022-04-09T14:28:36","date_gmt":"2022-04-09T12:28:36","guid":{"rendered":"https:\/\/rmarketingdigital.com\/android\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\/"},"modified":"2021-01-10T10:46:13","modified_gmt":"2021-01-10T13:46:13","slug":"%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha","status":"publish","type":"post","link":"https:\/\/rmarketingdigital.com\/en\/android\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\/","title":{"rendered":"\u2705 How to repeat the last command in Linux without using the arrow keys"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/rmarketingdigital.com\/en\/android\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\/#Como-repetir-el-ultimo-comando-en-Linux-sin-usar-las-teclas-de-flecha\" >How to repeat the last command in Linux without using the arrow keys<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/rmarketingdigital.com\/en\/android\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\/#Metodo-1-Para-el-csh-o-cualquier-cascaron-que-implemente-la-sustitucion-del-historial-del-csh\" >Method 1: For the csh or any shell that implements csh history substitution<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/rmarketingdigital.com\/en\/android\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\/#Metodo-2-Usar-los-key-bindings-de-Emacs\" >Method 2: Use Emacs Key Bindings<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/rmarketingdigital.com\/en\/android\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\/#Metodo-3-Usar-CTRL-P-y-despues-CTRL-O\" >Method 3: Use CTRL + P and then CTRL + O<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/rmarketingdigital.com\/en\/android\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\/#Metodo-3-Utilizando-el-comando-fc\" >Method 3: Using the fc command<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/rmarketingdigital.com\/en\/android\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\/#Metodo-4-%C2%A1Utilizacion\" >Method 4: Use!<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/rmarketingdigital.com\/en\/android\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\/#Metodo-5-En-caso-de-usar-MAC-puede-la-tecla\" >Method 5: In case of using MAC you can press<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<div>\n<p>  <strong>How to repeat the last command in Linux without using the arrow keys:<\/strong> Well, sometimes you want to repeat the above command on the command line when working with Linux systems and that in addition without using the arrow keys, so there is no particular way to do it, but here in the troubleshooter we have listed all the different ways to do just this.<\/p>\n<p> To repeat the commands normally you can use the old history operator csh! \u00ab!!\u00bb (without quotes) for the most recent command, if you want to just repeat the previous command then you can use! -2,! foo for the most recent one starting with the subsrting &quot;foo&quot;. You can also use the fc command or basically use: p to print the hint of the history operator.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Como-repetir-el-ultimo-comando-en-Linux-sin-usar-las-teclas-de-flecha\"><\/span> How to repeat the last command in Linux without using the arrow keys<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p> Let&#039;s look at some of the ways to remember the commands in the shell prompt:<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Metodo-1-Para-el-csh-o-cualquier-cascaron-que-implemente-la-sustitucion-del-historial-del-csh\"><\/span> Method 1: For the csh or any shell that implements csh history substitution<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<pre>!! Then hit Enter. O! -1 Then press Enter OR Ctrl + P and then press Enter<\/pre>\n<p>  <strong>Note:<\/strong> !! or! -1 will not expand automatically for you and until you run them it might be too late.<\/p>\n<p> If you use bash, you can put bind space: magic-space in ~ \/ .bashrc and after the command hitting space it will automatically expand them online.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Metodo-2-Usar-los-key-bindings-de-Emacs\"><\/span> Method 2: Use Emacs Key Bindings<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p> Most shells that have a command line editing function that supports Emacs key bindings:<\/p>\n<pre>Up Ctrl + P Down Ctrl + N Left Ctrl + B Right Ctrl + F Home Ctrl + A End Ctrl + E Remove Ctrl + D<\/pre>\n<h4><span class=\"ez-toc-section\" id=\"Metodo-3-Usar-CTRL-P-y-despues-CTRL-O\"><\/span> Method 3: Use CTRL + P and then CTRL + O<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p> Pressing CTRL + P will allow you to switch to the last command and pressing CTRL + O will allow you to execute the current line. Note: CTRL + O can be used as many times as you like.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Metodo-3-Utilizando-el-comando-fc\"><\/span> Method 3: Using the fc command<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<pre>fc -e: -1 For example: $ echo &quot;Troubleshooter&quot; Troubleshooter $ fc -e: -1 echo &quot;Troubleshooter&quot; Troubleshooter<\/pre>\n<p> Also read, How to restore lost + found files<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Metodo-4-%C2%A1Utilizacion\"><\/span> Method 4: Use!<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p> For csh or any shell that implements csh history substitution (tcsh, bash, zsh), you can use the! to call the last command that begins with<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Metodo-5-En-caso-de-usar-MAC-puede-la-tecla\"><\/span> Method 5: In case of using MAC you can press<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p> Can you join? + R to 0x0C 0x10 0x0d. This will clean up the terminal and run the last command.<\/p>\n<p> That is all you have successfully learned <em>How to repeat the last command in Linux without using the arrow keys<\/em> But if you still have any questions regarding this article, don&#039;t hesitate to ask in the comments section.<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>C\u00f3mo repetir el \u00faltimo comando en Linux sin usar las teclas de flecha: Bueno, a veces deseas repetir el comando anterior en la l\u00ednea de comandos cuando trabajas con sistemas&#8230;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1383],"tags":[],"class_list":["post-98130","post","type-post","status-publish","format-standard","category-android"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v28.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>\u2705 C\u00f3mo repetir el \u00faltimo comando en Linux sin usar las teclas de flecha - R Marketing Digital<\/title>\n<meta name=\"description\" content=\"C\u00f3mo repetir el \u00faltimo comando en Linux sin usar las teclas de flecha: Bueno, a veces deseas repetir el comando anterior en la l\u00ednea de comandos cuando\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rmarketingdigital.com\/en\/android\/\u2705-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u2705 C\u00f3mo repetir el \u00faltimo comando en Linux sin usar las teclas de flecha\" \/>\n<meta property=\"og:description\" content=\"C\u00f3mo repetir el \u00faltimo comando en Linux sin usar las teclas de flecha: Bueno, a veces deseas repetir el comando anterior en la l\u00ednea de comandos cuando\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rmarketingdigital.com\/en\/android\/\u2705-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\/\" \/>\n<meta property=\"og:site_name\" content=\"R Marketing Digital\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-09T12:28:36+00:00\" \/>\n<meta name=\"author\" content=\"R Marketing Digital\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/android\\\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/android\\\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\\\/\"},\"author\":{\"name\":\"R Marketing Digital\",\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/#\\\/schema\\\/person\\\/7c0d9782b2977b840b3740f00c69a73e\"},\"headline\":\"\u2705 C\u00f3mo repetir el \u00faltimo comando en Linux sin usar las teclas de flecha\",\"datePublished\":\"2022-04-09T12:28:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/android\\\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\\\/\"},\"wordCount\":440,\"articleSection\":[\"Android\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/android\\\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\\\/\",\"url\":\"https:\\\/\\\/rmarketingdigital.com\\\/android\\\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\\\/\",\"name\":\"\u2705 C\u00f3mo repetir el \u00faltimo comando en Linux sin usar las teclas de flecha - R Marketing Digital\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/#website\"},\"datePublished\":\"2022-04-09T12:28:36+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/#\\\/schema\\\/person\\\/7c0d9782b2977b840b3740f00c69a73e\"},\"description\":\"C\u00f3mo repetir el \u00faltimo comando en Linux sin usar las teclas de flecha: Bueno, a veces deseas repetir el comando anterior en la l\u00ednea de comandos cuando\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/rmarketingdigital.com\\\/android\\\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/#website\",\"url\":\"https:\\\/\\\/rmarketingdigital.com\\\/\",\"name\":\"R Marketing Digital\",\"description\":\"Agencia SEO | Publicidad redes sociales | Community Management\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/rmarketingdigital.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/rmarketingdigital.com\\\/#\\\/schema\\\/person\\\/7c0d9782b2977b840b3740f00c69a73e\",\"name\":\"R Marketing Digital\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c5599c203e0120b8ccbff4666af86f35f9b3dcad468a8bc6295313a3964a80be?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c5599c203e0120b8ccbff4666af86f35f9b3dcad468a8bc6295313a3964a80be?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c5599c203e0120b8ccbff4666af86f35f9b3dcad468a8bc6295313a3964a80be?s=96&d=mm&r=g\",\"caption\":\"R Marketing Digital\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u2705 How to repeat the last command in Linux without using the arrow keys - R Marketing Digital","description":"How to repeat the last command in Linux without using the arrow keys: Well, sometimes you want to repeat the above command on the command line when","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/rmarketingdigital.com\/en\/android\/\u2705-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\/","og_locale":"en_US","og_type":"article","og_title":"\u2705 C\u00f3mo repetir el \u00faltimo comando en Linux sin usar las teclas de flecha","og_description":"C\u00f3mo repetir el \u00faltimo comando en Linux sin usar las teclas de flecha: Bueno, a veces deseas repetir el comando anterior en la l\u00ednea de comandos cuando","og_url":"https:\/\/rmarketingdigital.com\/en\/android\/\u2705-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\/","og_site_name":"R Marketing Digital","article_published_time":"2022-04-09T12:28:36+00:00","author":"R Marketing Digital","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/rmarketingdigital.com\/android\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\/#article","isPartOf":{"@id":"https:\/\/rmarketingdigital.com\/android\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\/"},"author":{"name":"R Marketing Digital","@id":"https:\/\/rmarketingdigital.com\/#\/schema\/person\/7c0d9782b2977b840b3740f00c69a73e"},"headline":"\u2705 C\u00f3mo repetir el \u00faltimo comando en Linux sin usar las teclas de flecha","datePublished":"2022-04-09T12:28:36+00:00","mainEntityOfPage":{"@id":"https:\/\/rmarketingdigital.com\/android\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\/"},"wordCount":440,"articleSection":["Android"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/rmarketingdigital.com\/android\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\/","url":"https:\/\/rmarketingdigital.com\/android\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\/","name":"\u2705 How to repeat the last command in Linux without using the arrow keys - R Marketing Digital","isPartOf":{"@id":"https:\/\/rmarketingdigital.com\/#website"},"datePublished":"2022-04-09T12:28:36+00:00","author":{"@id":"https:\/\/rmarketingdigital.com\/#\/schema\/person\/7c0d9782b2977b840b3740f00c69a73e"},"description":"How to repeat the last command in Linux without using the arrow keys: Well, sometimes you want to repeat the above command on the command line when","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rmarketingdigital.com\/android\/%e2%9c%85-como-repetir-el-ultimo-comando-en-linux-sin-usar-las-teclas-de-flecha\/"]}]},{"@type":"WebSite","@id":"https:\/\/rmarketingdigital.com\/#website","url":"https:\/\/rmarketingdigital.com\/","name":"R Digital Marketing","description":"SEO Agency | Advertising social networks | Community Management","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rmarketingdigital.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/rmarketingdigital.com\/#\/schema\/person\/7c0d9782b2977b840b3740f00c69a73e","name":"R Digital Marketing","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c5599c203e0120b8ccbff4666af86f35f9b3dcad468a8bc6295313a3964a80be?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c5599c203e0120b8ccbff4666af86f35f9b3dcad468a8bc6295313a3964a80be?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c5599c203e0120b8ccbff4666af86f35f9b3dcad468a8bc6295313a3964a80be?s=96&d=mm&r=g","caption":"R Marketing Digital"}}]}},"_links":{"self":[{"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/posts\/98130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/comments?post=98130"}],"version-history":[{"count":0,"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/posts\/98130\/revisions"}],"wp:attachment":[{"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/media?parent=98130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/categories?post=98130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rmarketingdigital.com\/en\/wp-json\/wp\/v2\/tags?post=98130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}