<?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: Help with History command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-history-command/m-p/4427806#M355322</link>
    <description>your shell needs to be ksh or POSIX (/sbin/sh)&lt;BR /&gt;somewhere in your login (/etc/profile for all users or $HOME/.profile for a single user preferably) you will need to set these variables:&lt;BR /&gt;&lt;BR /&gt;HISTSIZE=400 # 400 lines of history gets kept&lt;BR /&gt;HISTFILE=$HOME/.sh_history&lt;BR /&gt;&lt;BR /&gt;and after setting these variable, somewhere in the same profile, you need to insert this line:&lt;BR /&gt;&lt;BR /&gt;set -o vi&lt;BR /&gt;&lt;BR /&gt;This should get you going</description>
    <pubDate>Wed, 27 May 2009 13:27:37 GMT</pubDate>
    <dc:creator>Mel Burslan</dc:creator>
    <dc:date>2009-05-27T13:27:37Z</dc:date>
    <item>
      <title>Help with History command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-history-command/m-p/4427803#M355319</link>
      <description>I was wondering if someone could tell me how to configure using &lt;ESC&gt; k to get your previous commands. I forgot where to set this up and have a new HPUX 11.31 server. I can't remember what file or syntax to use to get this to work. Can someone help me remember?&lt;/ESC&gt;</description>
      <pubDate>Wed, 27 May 2009 13:17:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-history-command/m-p/4427803#M355319</guid>
      <dc:creator>Chris Fadrowski</dc:creator>
      <dc:date>2009-05-27T13:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help with History command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-history-command/m-p/4427804#M355320</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;please check this link:&lt;BR /&gt;&lt;A href="http://www.unix.com/unix-dummies-questions-answers/17565-ksh-how-make-up-arrow-recall-command-history.html" target="_blank"&gt;http://www.unix.com/unix-dummies-questions-answers/17565-ksh-how-make-up-arrow-recall-command-history.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Cedrick Gaillard</description>
      <pubDate>Wed, 27 May 2009 13:22:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-history-command/m-p/4427804#M355320</guid>
      <dc:creator>mobidyc</dc:creator>
      <dc:date>2009-05-27T13:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help with History command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-history-command/m-p/4427805#M355321</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;put in .profile&lt;BR /&gt;&lt;BR /&gt;EDITOR=vi&lt;BR /&gt;export EDITOR&lt;BR /&gt;&lt;BR /&gt;Kenan.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 May 2009 13:24:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-history-command/m-p/4427805#M355321</guid>
      <dc:creator>Kenan Erdey</dc:creator>
      <dc:date>2009-05-27T13:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help with History command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-history-command/m-p/4427806#M355322</link>
      <description>your shell needs to be ksh or POSIX (/sbin/sh)&lt;BR /&gt;somewhere in your login (/etc/profile for all users or $HOME/.profile for a single user preferably) you will need to set these variables:&lt;BR /&gt;&lt;BR /&gt;HISTSIZE=400 # 400 lines of history gets kept&lt;BR /&gt;HISTFILE=$HOME/.sh_history&lt;BR /&gt;&lt;BR /&gt;and after setting these variable, somewhere in the same profile, you need to insert this line:&lt;BR /&gt;&lt;BR /&gt;set -o vi&lt;BR /&gt;&lt;BR /&gt;This should get you going</description>
      <pubDate>Wed, 27 May 2009 13:27:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-history-command/m-p/4427806#M355322</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-05-27T13:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with History command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-history-command/m-p/4427807#M355323</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;run this command.&lt;BR /&gt;&lt;BR /&gt;#set -o vi&lt;BR /&gt;&lt;BR /&gt;After that use "esc+k" key combination to retrieve the previously used commands.&lt;BR /&gt;&lt;BR /&gt;You can set that value in your user profile to make it permenant.</description>
      <pubDate>Wed, 27 May 2009 13:34:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-history-command/m-p/4427807#M355323</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-05-27T13:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with History command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-history-command/m-p/4427808#M355324</link>
      <description>thank you... adding HISTSIZE and HISTFILE with set -o vi into .profile worked.</description>
      <pubDate>Wed, 27 May 2009 13:38:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-history-command/m-p/4427808#M355324</guid>
      <dc:creator>Chris Fadrowski</dc:creator>
      <dc:date>2009-05-27T13:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help with History command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-history-command/m-p/4427809#M355325</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Just a short note. Location is important for the HISTFILE.&lt;BR /&gt;&lt;BR /&gt;I've seen it not work when placed on an NFS share with insufficient rights.&lt;BR /&gt;&lt;BR /&gt;The user can alter this data. To properly track it you'll need a cron script to copy the data off to a place the user can't edit it.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 27 May 2009 14:08:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-history-command/m-p/4427809#M355325</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-05-27T14:08:54Z</dc:date>
    </item>
  </channel>
</rss>

