<?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: Recalling command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876626#M99790</link>
    <description>After try ksh -o vi, then it's ok. But &lt;BR /&gt;why login in user1... don't type this command.&lt;BR /&gt;Is this only apply in root user?&lt;BR /&gt;</description>
    <pubDate>Wed, 08 Jan 2003 03:35:05 GMT</pubDate>
    <dc:creator>j773303</dc:creator>
    <dc:date>2003-01-08T03:35:05Z</dc:date>
    <item>
      <title>Recalling command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876620#M99784</link>
      <description>Why press ESC in root user mode&lt;BR /&gt; -k scrolls backward through the command&lt;BR /&gt;    history&lt;BR /&gt; -j scrolls forward through the command history&lt;BR /&gt;can not show the command in command line?&lt;BR /&gt;But in normal user terminal, this function&lt;BR /&gt;can work properly? Thanks.&lt;BR /&gt;&lt;BR /&gt;   note: EDITOR=vi&lt;BR /&gt;         export EDITOR</description>
      <pubDate>Wed, 08 Jan 2003 03:14:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876620#M99784</guid>
      <dc:creator>j773303</dc:creator>
      <dc:date>2003-01-08T03:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Recalling command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876621#M99785</link>
      <description>Cannot understand What you are looking for?&lt;BR /&gt;Can you just explain your Question</description>
      <pubDate>Wed, 08 Jan 2003 03:18:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876621#M99785</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-01-08T03:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Recalling command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876622#M99786</link>
      <description>You need to edit the user profile for this to work. For example ..(the file .kshrc).. should have these entries ..&lt;BR /&gt;&lt;BR /&gt;export EDITOR=vi&lt;BR /&gt;export HISTFILE=$HOME/.sh_history&lt;BR /&gt;&lt;BR /&gt;Then in .profile this entry should exist..&lt;BR /&gt;&lt;BR /&gt;export ENV=$HOME/.kshrc&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jan 2003 03:21:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876622#M99786</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2003-01-08T03:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Recalling command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876623#M99787</link>
      <description>Login in root user, it can't press ESC and then&lt;BR /&gt;k button to scrolls backward through the command history. But while login in user1, this&lt;BR /&gt;can be done. Why?</description>
      <pubDate>Wed, 08 Jan 2003 03:21:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876623#M99787</guid>
      <dc:creator>j773303</dc:creator>
      <dc:date>2003-01-08T03:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Recalling command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876624#M99788</link>
      <description>do &lt;BR /&gt;#ksh -o vi&lt;BR /&gt;after loging as root, then you should have your ESC key working for history commands.&lt;BR /&gt;&lt;BR /&gt;Rajeev</description>
      <pubDate>Wed, 08 Jan 2003 03:27:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876624#M99788</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2003-01-08T03:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Recalling command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876625#M99789</link>
      <description>just type following command on prompt and try out&lt;BR /&gt;&lt;BR /&gt;ksh -o vi&lt;BR /&gt;&lt;BR /&gt;note: ksh should be in  path</description>
      <pubDate>Wed, 08 Jan 2003 03:32:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876625#M99789</guid>
      <dc:creator>kish_1</dc:creator>
      <dc:date>2003-01-08T03:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Recalling command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876626#M99790</link>
      <description>After try ksh -o vi, then it's ok. But &lt;BR /&gt;why login in user1... don't type this command.&lt;BR /&gt;Is this only apply in root user?&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jan 2003 03:35:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876626#M99790</guid>
      <dc:creator>j773303</dc:creator>
      <dc:date>2003-01-08T03:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Recalling command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876627#M99791</link>
      <description>you should have that in the .profile of the user.&lt;BR /&gt;&lt;BR /&gt;check it out&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jan 2003 03:39:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876627#M99791</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-01-08T03:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Recalling command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876628#M99792</link>
      <description>Check the shell of root and user1 they are different i guess. And command history works in posix and ksh only thats why by doing ksh -o vi you are actually changing the shell of root to ksh. But bear in mind NEVER change the default shell of root or else you wont be able to login at all.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Rajeev</description>
      <pubDate>Wed, 08 Jan 2003 03:42:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876628#M99792</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2003-01-08T03:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Recalling command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876629#M99793</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;S.K. Chan has the correct answer. This is described in the sh-posix(1) manpage:&lt;BR /&gt;&lt;BR /&gt;------------------------&lt;BR /&gt;If the user is a superuser and no HISTFILE is given, then no history file is used.&lt;BR /&gt;------------------------&lt;BR /&gt;&lt;BR /&gt;This is done for security reasons, I suppose. Setting the HISTFILE envvar in the .profile for root should indeed do the trick. Remember that the POSIX shell is the standard and should be used instead of ksh.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Rik</description>
      <pubDate>Wed, 08 Jan 2003 07:13:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876629#M99793</guid>
      <dc:creator>RikTytgat</dc:creator>
      <dc:date>2003-01-08T07:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Recalling command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876630#M99794</link>
      <description>Check what is the usr shell by the command echo $SHELL&lt;BR /&gt;If it show /sbin/sh, then is is a POSIX Shell&lt;BR /&gt;If it show /usr/bin/ksh, then it is a Korn shell, so that the user can check the previous command by pressing  ESC and then the letter k will go to that previous command.&lt;BR /&gt;Change the user shell to /usr/bin/ksh, if it exist as /sbin/sh.then it will easy to check the previous command.</description>
      <pubDate>Wed, 08 Jan 2003 08:12:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recalling-command/m-p/2876630#M99794</guid>
      <dc:creator>Balaji_6</dc:creator>
      <dc:date>2003-01-08T08:12:51Z</dc:date>
    </item>
  </channel>
</rss>

