<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Short cuts in HP-UX 11.00 - with question! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/short-cuts-in-hp-ux-11-00-with-question/m-p/2572026#M873397</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can use this if you want. &lt;BR /&gt;&lt;BR /&gt;set your EDITOR to "vi" if it is not already done through your profile.&lt;BR /&gt;EDITOR=vi&lt;BR /&gt;export EDITOR&lt;BR /&gt;&lt;BR /&gt;then use &lt;BR /&gt;&lt;BR /&gt;ksh -o vi&lt;BR /&gt;&lt;BR /&gt;this will create a file .sh_history in your home directory if it is not available and will use one if it is already available. After this you can use &lt;ESC&gt; k,l,j, and h for navigation through your earliar commands.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;/ESC&gt;</description>
    <pubDate>Wed, 29 Aug 2001 14:01:21 GMT</pubDate>
    <dc:creator>Sanjay_6</dc:creator>
    <dc:date>2001-08-29T14:01:21Z</dc:date>
    <item>
      <title>Short cuts in HP-UX 11.00 - with question!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/short-cuts-in-hp-ux-11-00-with-question/m-p/2572021#M873392</link>
      <description>I'm wanting to switch on the &lt;ESCAPE&gt; &lt;ESCAPE&gt; &lt;K&gt; functionality whereby the last used commands are displayed acting as shortcuts to typing command lines in again. How do I do this ?? Pls help.&lt;/K&gt;&lt;/ESCAPE&gt;&lt;/ESCAPE&gt;</description>
      <pubDate>Wed, 29 Aug 2001 12:56:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/short-cuts-in-hp-ux-11-00-with-question/m-p/2572021#M873392</guid>
      <dc:creator>Simon R Wootton</dc:creator>
      <dc:date>2001-08-29T12:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Short cuts in HP-UX 11.00 - with question!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/short-cuts-in-hp-ux-11-00-with-question/m-p/2572022#M873393</link>
      <description>make sure you have a .sh_history file and that in your .profile you have the following:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HISTFILE=$HOME/.sh_history &lt;BR /&gt;export HISTFILE            &lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Chris&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Aug 2001 13:02:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/short-cuts-in-hp-ux-11-00-with-question/m-p/2572022#M873393</guid>
      <dc:creator>Christopher McCray_1</dc:creator>
      <dc:date>2001-08-29T13:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Short cuts in HP-UX 11.00 - with question!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/short-cuts-in-hp-ux-11-00-with-question/m-p/2572023#M873394</link>
      <description>You need the following entries in your $HOME/.profile file (when using /usr/bin/sh, ksh or /sbin/sh as a shell): &lt;BR /&gt;&lt;BR /&gt;HISTFILE=$HOME/.sh_history &lt;BR /&gt;export HISTFILE &lt;BR /&gt;set -o vi&lt;BR /&gt;&lt;BR /&gt;Carsten&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Aug 2001 13:04:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/short-cuts-in-hp-ux-11-00-with-question/m-p/2572023#M873394</guid>
      <dc:creator>Carsten Krege</dc:creator>
      <dc:date>2001-08-29T13:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Short cuts in HP-UX 11.00 - with question!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/short-cuts-in-hp-ux-11-00-with-question/m-p/2572024#M873395</link>
      <description>I forgot the set -o vi line.  Thanks, Carsten, good catch!!!!</description>
      <pubDate>Wed, 29 Aug 2001 13:08:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/short-cuts-in-hp-ux-11-00-with-question/m-p/2572024#M873395</guid>
      <dc:creator>Christopher McCray_1</dc:creator>
      <dc:date>2001-08-29T13:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Short cuts in HP-UX 11.00 - with question!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/short-cuts-in-hp-ux-11-00-with-question/m-p/2572025#M873396</link>
      <description>Further to the above, you need to have your shell as /usr/bin/ksh or /usr/bin/sh.&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Wed, 29 Aug 2001 13:13:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/short-cuts-in-hp-ux-11-00-with-question/m-p/2572025#M873396</guid>
      <dc:creator>Tim D Fulford</dc:creator>
      <dc:date>2001-08-29T13:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Short cuts in HP-UX 11.00 - with question!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/short-cuts-in-hp-ux-11-00-with-question/m-p/2572026#M873397</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can use this if you want. &lt;BR /&gt;&lt;BR /&gt;set your EDITOR to "vi" if it is not already done through your profile.&lt;BR /&gt;EDITOR=vi&lt;BR /&gt;export EDITOR&lt;BR /&gt;&lt;BR /&gt;then use &lt;BR /&gt;&lt;BR /&gt;ksh -o vi&lt;BR /&gt;&lt;BR /&gt;this will create a file .sh_history in your home directory if it is not available and will use one if it is already available. After this you can use &lt;ESC&gt; k,l,j, and h for navigation through your earliar commands.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;/ESC&gt;</description>
      <pubDate>Wed, 29 Aug 2001 14:01:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/short-cuts-in-hp-ux-11-00-with-question/m-p/2572026#M873397</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-08-29T14:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Short cuts in HP-UX 11.00 - with question!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/short-cuts-in-hp-ux-11-00-with-question/m-p/2572027#M873398</link>
      <description>The command history is always enabled in the Korn shell (ksh) but must be explicitly enabled for the POSIX shell (part of the extra security found in /usr/bin/sh and /sbin/sh). Only one entry needs to be added to /etc/profile:&lt;BR /&gt;&lt;BR /&gt;export HISTFILE=$HOME/.sh_history&lt;BR /&gt;&lt;BR /&gt;Then logout and back in again.  If .sh_history does not exist (primarily for root), you may have to create it using the touch command:&lt;BR /&gt;&lt;BR /&gt;touch $HOME/.sh_history&lt;BR /&gt;&lt;BR /&gt;Actually, only a single ESC is neede to recall the last command as in: ESC k&lt;BR /&gt;&lt;BR /&gt;Some really useful command recall features:&lt;BR /&gt;&lt;BR /&gt;Search for a particular command:&lt;BR /&gt;ESC / &lt;PATTERN&gt;   (search backwards for a string)&lt;BR /&gt;&lt;BR /&gt;then after the first occurance of the search is found, use the letter n to move to the next one just like vi).&lt;BR /&gt;&lt;BR /&gt;Recall a specific command:&lt;BR /&gt;history  (that's an alias for fc -l)&lt;BR /&gt;or&lt;BR /&gt;history -100  (show the last 100 entries)&lt;BR /&gt;&lt;BR /&gt;To recall a specific command:&lt;BR /&gt;r 123&lt;BR /&gt;&lt;BR /&gt;You can edit a recalled command using most of the vi line edits and once the line is correct, press return to execute.&lt;BR /&gt;&lt;BR /&gt;See the man page for sh-posix&lt;BR /&gt;&lt;/PATTERN&gt;</description>
      <pubDate>Wed, 29 Aug 2001 14:54:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/short-cuts-in-hp-ux-11-00-with-question/m-p/2572027#M873398</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-08-29T14:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Short cuts in HP-UX 11.00 - with question!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/short-cuts-in-hp-ux-11-00-with-question/m-p/2572028#M873399</link>
      <description>Hello Simon,&lt;BR /&gt;&lt;BR /&gt;and if you add "set -o viraw" after the &lt;BR /&gt;"set -o vi" you do get the Filename Completion&lt;BR /&gt;feature when you press &lt;ESC&gt; &lt;ESC&gt; after the&lt;BR /&gt;first few characters of a filename...&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;   Wodisch&lt;/ESC&gt;&lt;/ESC&gt;</description>
      <pubDate>Wed, 29 Aug 2001 15:43:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/short-cuts-in-hp-ux-11-00-with-question/m-p/2572028#M873399</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-08-29T15:43:43Z</dc:date>
    </item>
  </channel>
</rss>

