<?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: Command History in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3648512#M803129</link>
    <description>If you're using korn shell:&lt;BR /&gt;&lt;BR /&gt;esc k gives you the last command&lt;BR /&gt;&lt;BR /&gt;history gives you (by default) the last ten commands.&lt;BR /&gt;&lt;BR /&gt;history -n gives you the last n commands: e.g. history -20 gives you 20 commands.&lt;BR /&gt;&lt;BR /&gt;The output will be similar to this:&lt;BR /&gt;&lt;BR /&gt;121 cd&lt;BR /&gt;122 ll&lt;BR /&gt;&lt;BR /&gt;You can then run r 121 to repeat the cd command.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
    <pubDate>Thu, 13 Oct 2005 03:57:12 GMT</pubDate>
    <dc:creator>MarkSyder</dc:creator>
    <dc:date>2005-10-13T03:57:12Z</dc:date>
    <item>
      <title>Command History</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3648510#M803127</link>
      <description>Dear all again:&lt;BR /&gt;     How can I get the command history by pressing UP key or others?&lt;BR /&gt;     I connect to the OVO server by Reflection X,does it work?</description>
      <pubDate>Thu, 13 Oct 2005 03:54:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3648510#M803127</guid>
      <dc:creator>Frank,Hong</dc:creator>
      <dc:date>2005-10-13T03:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Command History</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3648511#M803128</link>
      <description>Which shell you are using.? Is it ksh?&lt;BR /&gt;&lt;BR /&gt;Do find it then,&lt;BR /&gt;&lt;BR /&gt;in shell prompt,&lt;BR /&gt;&lt;BR /&gt;# echo $SHELL&lt;BR /&gt;&lt;BR /&gt;if it is ksh then,&lt;BR /&gt;&lt;BR /&gt;use as,&lt;BR /&gt;&lt;BR /&gt;# &lt;ESCAPE&gt;/&lt;ENTER&gt;&lt;BR /&gt;# &lt;ESCAPE&gt;/&lt;STRING&gt; &lt;ENTER&gt;&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;/ENTER&gt;&lt;/STRING&gt;&lt;/ESCAPE&gt;&lt;/ENTER&gt;&lt;/ESCAPE&gt;</description>
      <pubDate>Thu, 13 Oct 2005 03:56:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3648511#M803128</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-10-13T03:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Command History</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3648512#M803129</link>
      <description>If you're using korn shell:&lt;BR /&gt;&lt;BR /&gt;esc k gives you the last command&lt;BR /&gt;&lt;BR /&gt;history gives you (by default) the last ten commands.&lt;BR /&gt;&lt;BR /&gt;history -n gives you the last n commands: e.g. history -20 gives you 20 commands.&lt;BR /&gt;&lt;BR /&gt;The output will be similar to this:&lt;BR /&gt;&lt;BR /&gt;121 cd&lt;BR /&gt;122 ll&lt;BR /&gt;&lt;BR /&gt;You can then run r 121 to repeat the cd command.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Thu, 13 Oct 2005 03:57:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3648512#M803129</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-10-13T03:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Command History</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3648513#M803130</link>
      <description>Is history enabled on your machine.? Check as by executing,&lt;BR /&gt;&lt;BR /&gt;# history (in shell prompt)&lt;BR /&gt;&lt;BR /&gt;If it is showing then no problem.&lt;BR /&gt;&lt;BR /&gt;Else,&lt;BR /&gt;&lt;BR /&gt;# export -o vi&lt;BR /&gt;# export HISTFILE=$HOME/.sh_history&lt;BR /&gt;# export HISTSIZE=2500&lt;BR /&gt;&lt;BR /&gt;in command line or put it in,&lt;BR /&gt;&lt;BR /&gt;$HOME/.dtprofile file&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Thu, 13 Oct 2005 03:58:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3648513#M803130</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-10-13T03:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Command History</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3648514#M803131</link>
      <description>Its depends on which shell you use. If you have bash installed, you can get it by UP keys. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Shells/bash-3.00.16/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Shells/bash-3.00.16/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;or, in KSH, you have to enable history option in your .profile&lt;BR /&gt;&lt;BR /&gt;export -o vi&lt;BR /&gt;export HISTFILE=$HOME/.sh_history&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Thu, 13 Oct 2005 06:24:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3648514#M803131</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-10-13T06:24:58Z</dc:date>
    </item>
  </channel>
</rss>

