{"id":478,"date":"2009-10-13T11:48:02","date_gmt":"2009-10-13T09:48:02","guid":{"rendered":"http:\/\/www.netexpertise.eu\/en\/?p=478"},"modified":"2021-04-05T22:51:22","modified_gmt":"2021-04-05T20:51:22","slug":"command-history-with-arrow-keys-in-ksh","status":"publish","type":"post","link":"http:\/\/www.netexpertise.eu\/en\/misc\/command-history-with-arrow-keys-in-ksh.html","title":{"rendered":"Command History with Arrow Keys in ksh"},"content":{"rendered":"\n<p>Arrows aren&#8217;t used in ksh as a default. To enable command history like in Bash, add the following lines in the .profile or .kshrc file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"vim\" class=\"language-vim\"># Switch to Emacs mode\n# Only Emacs mode lets you make use of arrow keys\nset -o emacs\n\n# Go back in command history (up arrow)\nalias __A='^P'\n\n# Go back in command history (down arrow)\nalias __B='^N'\n\n# Move right on the command line (right arrow)\nalias __C='^F'\n\n# Move left on the command line (left arrow)\nalias __D='^B'<\/code><\/pre>\n\n\n\n<p>\u00a0<br>^P, ^N, etc aren&#8217;t one single character. Enter Ctrl-V and Ctrl-P to display them in vi.<br>\u00a0<br>Auto-completion is only available for files, not commands. Press either twice on the escape key, or the tab key on newer systems.<br>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Arrows aren&#8217;t used in ksh as a default. To enable command history like in Bash, add the following lines in the .profile or .kshrc file: \u00a0^P, ^N, etc aren&#8217;t one single character. Enter Ctrl-V and Ctrl-P to display them in vi.\u00a0Auto-completion is only available for files, not commands. Press either twice on the escape key, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[137,11,1,136],"tags":[394,273,386,393,123],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Netexpertise - Command History with Arrow Keys in ksh<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.netexpertise.eu\/en\/misc\/command-history-with-arrow-keys-in-ksh.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Netexpertise - Command History with Arrow Keys in ksh\" \/>\n<meta property=\"og:description\" content=\"Arrows aren&#8217;t used in ksh as a default. To enable command history like in Bash, add the following lines in the .profile or .kshrc file: \u00a0^P, ^N, etc aren&#8217;t one single character. Enter Ctrl-V and Ctrl-P to display them in vi.\u00a0Auto-completion is only available for files, not commands. Press either twice on the escape key, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.netexpertise.eu\/en\/misc\/command-history-with-arrow-keys-in-ksh.html\" \/>\n<meta property=\"og:site_name\" content=\"Netexpertise\" \/>\n<meta property=\"article:published_time\" content=\"2009-10-13T09:48:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-04-05T20:51:22+00:00\" \/>\n<meta name=\"author\" content=\"dave\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@netexpertise\" \/>\n<meta name=\"twitter:site\" content=\"@netexpertise\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/misc\/command-history-with-arrow-keys-in-ksh.html\",\"url\":\"http:\/\/www.netexpertise.eu\/en\/misc\/command-history-with-arrow-keys-in-ksh.html\",\"name\":\"Netexpertise - Command History with Arrow Keys in ksh\",\"isPartOf\":{\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#website\"},\"datePublished\":\"2009-10-13T09:48:02+00:00\",\"dateModified\":\"2021-04-05T20:51:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa\"},\"breadcrumb\":{\"@id\":\"http:\/\/www.netexpertise.eu\/en\/misc\/command-history-with-arrow-keys-in-ksh.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.netexpertise.eu\/en\/misc\/command-history-with-arrow-keys-in-ksh.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/misc\/command-history-with-arrow-keys-in-ksh.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.netexpertise.eu\/en\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Command History with Arrow Keys in ksh\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#website\",\"url\":\"https:\/\/www.netexpertise.eu\/en\/\",\"name\":\"Netexpertise\",\"description\":\"Systems \/ Networks \/ DevOps\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.netexpertise.eu\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa\",\"name\":\"dave\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"caption\":\"dave\"},\"sameAs\":[\"http:\/\/www.netexpertise.eu\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Netexpertise - Command History with Arrow Keys in ksh","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":"http:\/\/www.netexpertise.eu\/en\/misc\/command-history-with-arrow-keys-in-ksh.html","og_locale":"en_US","og_type":"article","og_title":"Netexpertise - Command History with Arrow Keys in ksh","og_description":"Arrows aren&#8217;t used in ksh as a default. To enable command history like in Bash, add the following lines in the .profile or .kshrc file: \u00a0^P, ^N, etc aren&#8217;t one single character. Enter Ctrl-V and Ctrl-P to display them in vi.\u00a0Auto-completion is only available for files, not commands. Press either twice on the escape key, [&hellip;]","og_url":"http:\/\/www.netexpertise.eu\/en\/misc\/command-history-with-arrow-keys-in-ksh.html","og_site_name":"Netexpertise","article_published_time":"2009-10-13T09:48:02+00:00","article_modified_time":"2021-04-05T20:51:22+00:00","author":"dave","twitter_card":"summary_large_image","twitter_creator":"@netexpertise","twitter_site":"@netexpertise","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.netexpertise.eu\/en\/misc\/command-history-with-arrow-keys-in-ksh.html","url":"http:\/\/www.netexpertise.eu\/en\/misc\/command-history-with-arrow-keys-in-ksh.html","name":"Netexpertise - Command History with Arrow Keys in ksh","isPartOf":{"@id":"https:\/\/www.netexpertise.eu\/en\/#website"},"datePublished":"2009-10-13T09:48:02+00:00","dateModified":"2021-04-05T20:51:22+00:00","author":{"@id":"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa"},"breadcrumb":{"@id":"http:\/\/www.netexpertise.eu\/en\/misc\/command-history-with-arrow-keys-in-ksh.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.netexpertise.eu\/en\/misc\/command-history-with-arrow-keys-in-ksh.html"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.netexpertise.eu\/en\/misc\/command-history-with-arrow-keys-in-ksh.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.netexpertise.eu\/en"},{"@type":"ListItem","position":2,"name":"Command History with Arrow Keys in ksh"}]},{"@type":"WebSite","@id":"https:\/\/www.netexpertise.eu\/en\/#website","url":"https:\/\/www.netexpertise.eu\/en\/","name":"Netexpertise","description":"Systems \/ Networks \/ DevOps","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.netexpertise.eu\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa","name":"dave","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","caption":"dave"},"sameAs":["http:\/\/www.netexpertise.eu"]}]}},"_links":{"self":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts\/478"}],"collection":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/comments?post=478"}],"version-history":[{"count":0,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts\/478\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/media?parent=478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/categories?post=478"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/tags?post=478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}