<?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: Getting previous commands using up arrow. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-previous-commands-using-up-arrow/m-p/3578455#M807948</link>
    <description>Hi Shiv Prasad&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    Check for this environment settings&lt;BR /&gt;&lt;BR /&gt;  echo $HISTFILE&lt;BR /&gt;answer may be any file name default is .bash_history&lt;BR /&gt;&lt;BR /&gt; cat the file name and see wheather u r able to see any previos commands. If the file is not thr touch that file.&lt;BR /&gt;&lt;BR /&gt;  echo $HISTFILESIZE r $HISTSIZE&lt;BR /&gt;&lt;BR /&gt;  if the above file is there and there is no entires in it that may a problem with history file size so check this entry it can any thing away from 0. &lt;BR /&gt;&lt;BR /&gt;Jayachandran.G</description>
    <pubDate>Mon, 11 Jul 2005 02:07:58 GMT</pubDate>
    <dc:creator>jayachandran.g</dc:creator>
    <dc:date>2005-07-11T02:07:58Z</dc:date>
    <item>
      <title>Getting previous commands using up arrow.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-previous-commands-using-up-arrow/m-p/3578452#M807945</link>
      <description>I have installed bash shell 3.00 version on my HPUX 11.11 PA-RISC machine. Bash shell is  working fine. But if i type the up arrow i am not getting the previous commands. How do i make my bash shell user friendly ( as we find it in Linux like up arrow, backspace and delete keys etc) in hpux. Do i need to configure some thing? Please let me know.</description>
      <pubDate>Fri, 08 Jul 2005 07:07:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-previous-commands-using-up-arrow/m-p/3578452#M807945</guid>
      <dc:creator>Siva Prasad</dc:creator>
      <dc:date>2005-07-08T07:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Getting previous commands using up arrow.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-previous-commands-using-up-arrow/m-p/3578453#M807946</link>
      <description>Siva,&lt;BR /&gt;&lt;BR /&gt;yes, Linux, is OK, with the the up-arrow,but historical shell is the following:&lt;BR /&gt;on hp-ux:&lt;BR /&gt;enter 'ksh' commad-line, for example&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ ksh&lt;BR /&gt;set -o vi&lt;BR /&gt;&lt;ESC&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;where &lt;ESC&gt; key equals like-the up-arrow, next&lt;BR /&gt;type the '-' command is like the up-arrow in bash.&lt;BR /&gt;&lt;BR /&gt;try this:&lt;BR /&gt;&lt;BR /&gt;lx&lt;BACK-SPACE&gt;&lt;BR /&gt;s&lt;BR /&gt;&lt;ESC&gt;&lt;BR /&gt;&lt;UP-ARROW&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;what happens?&lt;BR /&gt;&lt;/UP-ARROW&gt;&lt;/ESC&gt;&lt;/BACK-SPACE&gt;&lt;/ESC&gt;&lt;/ESC&gt;</description>
      <pubDate>Sat, 09 Jul 2005 22:36:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-previous-commands-using-up-arrow/m-p/3578453#M807946</guid>
      <dc:creator>D Block 2</dc:creator>
      <dc:date>2005-07-09T22:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting previous commands using up arrow.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-previous-commands-using-up-arrow/m-p/3578454#M807947</link>
      <description>You definitely need to set something. In linux flavors, this setting comes enabled as default but I think on HPUX this is not the case.&lt;BR /&gt;&lt;BR /&gt;I can not help you much as I am a vi monger and prefer to use esc-k/j/i/l for my command line editing but you can look it up under EMACS style command line editing. I am sure googling some combination of the terms I have given above, willlead you to the correct answer but, you can start your adventure by running this command&lt;BR /&gt;&lt;BR /&gt;set -o emacs&lt;BR /&gt;&lt;BR /&gt;if emacs is properly configured, it might be the solution you are looking for.</description>
      <pubDate>Sun, 10 Jul 2005 00:37:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-previous-commands-using-up-arrow/m-p/3578454#M807947</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-07-10T00:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting previous commands using up arrow.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-previous-commands-using-up-arrow/m-p/3578455#M807948</link>
      <description>Hi Shiv Prasad&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    Check for this environment settings&lt;BR /&gt;&lt;BR /&gt;  echo $HISTFILE&lt;BR /&gt;answer may be any file name default is .bash_history&lt;BR /&gt;&lt;BR /&gt; cat the file name and see wheather u r able to see any previos commands. If the file is not thr touch that file.&lt;BR /&gt;&lt;BR /&gt;  echo $HISTFILESIZE r $HISTSIZE&lt;BR /&gt;&lt;BR /&gt;  if the above file is there and there is no entires in it that may a problem with history file size so check this entry it can any thing away from 0. &lt;BR /&gt;&lt;BR /&gt;Jayachandran.G</description>
      <pubDate>Mon, 11 Jul 2005 02:07:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-previous-commands-using-up-arrow/m-p/3578455#M807948</guid>
      <dc:creator>jayachandran.g</dc:creator>
      <dc:date>2005-07-11T02:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting previous commands using up arrow.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-previous-commands-using-up-arrow/m-p/3578456#M807949</link>
      <description>You can try as,&lt;BR /&gt;&lt;BR /&gt; set -o emacs&lt;BR /&gt; export HISTSIZE=1000&lt;BR /&gt; export $HISTFILE=$HOME/.sh_history&lt;BR /&gt;&lt;BR /&gt; put this in /etc/profile to get effect at every login.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Mon, 11 Jul 2005 03:11:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-previous-commands-using-up-arrow/m-p/3578456#M807949</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-07-11T03:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Getting previous commands using up arrow.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-previous-commands-using-up-arrow/m-p/3578457#M807950</link>
      <description>Hi;&lt;BR /&gt;&lt;BR /&gt;We're using HP-UX 11.23 on Itanium and the default Posix shell, so I'm not sure if this will work for you.&lt;BR /&gt;&lt;BR /&gt;I defined VISUAL to be emacs and then set up the aliases in the user's .profile:&lt;BR /&gt;alias -x __A=`echo "\0020"` #Up arrow ^P&lt;BR /&gt;alias -x __B=`echo "\0016"` #Down arrow ^N&lt;BR /&gt;alias -x __C=`echo "\0006"` #Right arrow ^F&lt;BR /&gt;alias -x __D=`echo "\0002"` #Left arrows ^B&lt;BR /&gt;&lt;BR /&gt;There are two (2) underscores in each alias name.&lt;BR /&gt;&lt;BR /&gt;We use KEAterm which emulates a VT420 and CDE's terminal program which is a dtterm.  It seems to work for both.&lt;BR /&gt;&lt;BR /&gt;Idea came from this thread: &lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=3617" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=3617&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Terry&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Sep 2005 13:12:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-previous-commands-using-up-arrow/m-p/3578457#M807950</guid>
      <dc:creator>Terry Kirk</dc:creator>
      <dc:date>2005-09-23T13:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting previous commands using up arrow.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-previous-commands-using-up-arrow/m-p/3578458#M807951</link>
      <description>you can configure the .bashrc (?) file to include the commands "set -o vi" or "set -o emacs" and also the arrow key functions.&lt;BR /&gt;&lt;BR /&gt;i usually use o'reilly's book on the bash shell for reference, btw</description>
      <pubDate>Fri, 23 Sep 2005 13:24:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-previous-commands-using-up-arrow/m-p/3578458#M807951</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2005-09-23T13:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting previous commands using up arrow.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-previous-commands-using-up-arrow/m-p/3578459#M807952</link>
      <description>If you set your login shell to bash you will have this capability. &lt;BR /&gt;&lt;BR /&gt;You can get bash from gatekeep.cs.utah.edu in depot format or is source form.&lt;BR /&gt;&lt;BR /&gt;Set your login shell to bash and you will have that up arrow functionality.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Sep 2005 14:02:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-previous-commands-using-up-arrow/m-p/3578459#M807952</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-09-23T14:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting previous commands using up arrow.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-previous-commands-using-up-arrow/m-p/3578460#M807953</link>
      <description>bash is initially in emacs mode. Key binding is builtin into the binary. You can switch to vi mode with set -o vi and use the arrow keys in addition to the powerful vi commands. &lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Fri, 23 Sep 2005 14:11:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-previous-commands-using-up-arrow/m-p/3578460#M807953</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-09-23T14:11:57Z</dc:date>
    </item>
  </channel>
</rss>

