<?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: Difference between export HISTORY &amp;amp; export HISTSIZE in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-export-history-amp-export-histsize/m-p/2850388#M934529</link>
    <description>Hi Nikee&lt;BR /&gt;HISTSIZE is the environment variable used to count the numbers that history command can be remembered by POSIX shell.&lt;BR /&gt;No HISTORY variable.&lt;BR /&gt;</description>
    <pubDate>Thu, 06 Mar 2003 07:05:37 GMT</pubDate>
    <dc:creator>??_29</dc:creator>
    <dc:date>2003-03-06T07:05:37Z</dc:date>
    <item>
      <title>Difference between export HISTORY &amp; export HISTSIZE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-export-history-amp-export-histsize/m-p/2850381#M934522</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;What is the "Difference between export HISTORY &amp;amp; export HISTSIZE" ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Nikee</description>
      <pubDate>Fri, 22 Nov 2002 18:16:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-export-history-amp-export-histsize/m-p/2850381#M934522</guid>
      <dc:creator>Nikee Reddy</dc:creator>
      <dc:date>2002-11-22T18:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between export HISTORY &amp; export HISTSIZE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-export-history-amp-export-histsize/m-p/2850382#M934523</link>
      <description>See 'man sh-posix'&lt;BR /&gt;&lt;BR /&gt;HISTSIZE is the number of previous commands maintained in HISTFILE.&lt;BR /&gt;&lt;BR /&gt;Don't know of HISTORY but HISTFILE is the name of the file that the shell uses to keep your previous commands in. Do you mean HISTFILE?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Fri, 22 Nov 2002 18:22:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-export-history-amp-export-histsize/m-p/2850382#M934523</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-11-22T18:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between export HISTORY &amp; export HISTSIZE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-export-history-amp-export-histsize/m-p/2850383#M934524</link>
      <description>I have never used HISTSIZE, and am not really sure that it's supported on HP-UX.  I remember a long time ago reading that it maintained bytes of history instead of lines.&lt;BR /&gt;&lt;BR /&gt;HISTSIZE=1024 would maintain 1K of history.&lt;BR /&gt;&lt;BR /&gt;This was during the time the Sun Sparc 2's were being shipped.  &lt;BR /&gt;&lt;BR /&gt;Honestly, I dont even remember what OS it was on, Aix 3? Solaris 2.1?  I didnt even work with HP-UX back then... ;(&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Fri, 22 Nov 2002 20:41:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-export-history-amp-export-histsize/m-p/2850383#M934524</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2002-11-22T20:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between export HISTORY &amp; export HISTSIZE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-export-history-amp-export-histsize/m-p/2850384#M934525</link>
      <description>Hi Nikee,&lt;BR /&gt;&lt;BR /&gt;Quote sunsolve&lt;BR /&gt;&lt;BR /&gt;Problem Description &lt;BR /&gt;&lt;BR /&gt;C shell and Korn shell only save one copy of a command history file.&lt;BR /&gt;When I exit a window manager like OpenWindows and CDE, only the command&lt;BR /&gt;history of the last shell to exit is saved.  How can I save the command&lt;BR /&gt;histories from all of my shells when I exit the window manager?      &lt;BR /&gt;Keywords: shell, history, window, manager &lt;BR /&gt;&lt;BR /&gt;Problem Solution &lt;BR /&gt;&lt;BR /&gt;Solaris' C shell and Korn shell are designed to write a user's command history&lt;BR /&gt;to a single file ($HOME/.history for C shell and $HOME/.sh_history or HISTFILE&lt;BR /&gt;for Korn shell), when they exit.  When a user runs mutiple C shells or Korn&lt;BR /&gt;shells within a window manager such as OpenWindows or CDE, only the command&lt;BR /&gt;history of the last shell to exit is written to the history file.  And&lt;BR /&gt;the last shell to exit is the shell that started the window manager, so none&lt;BR /&gt;of the commands executed by the user in shells within the window manager are&lt;BR /&gt;saved.&lt;BR /&gt;&lt;BR /&gt;A public domain shell called tcsh (an enhanced C shell) allows the user to&lt;BR /&gt;merge the command histories of multiple tcsh shells into a single history&lt;BR /&gt;file.  To use it, do the following:&lt;BR /&gt;&lt;BR /&gt;1. use tcsh as the user's login shell&lt;BR /&gt;2. in the user's .cshrc or .tcshrc file, add the following entries:&lt;BR /&gt;&lt;BR /&gt;    set history = [positive number, indicating number of commands to buffer]&lt;BR /&gt;    example: set history = 200&lt;BR /&gt;&lt;BR /&gt;    set savehist = ( [number of commands to save to histfile] merge )&lt;BR /&gt;    example: set savehist = ( 200 merge )&lt;BR /&gt;&lt;BR /&gt;   The 'merge' literal is specific to the tcsh shell: it is not part of the&lt;BR /&gt;   C shell or Korn shell.  It directs all tcsh shells to merge their command&lt;BR /&gt;   histories into a single history file (if no history file is specified, the&lt;BR /&gt;   default file is $HOME/.history) instead of overwriting the file.  The&lt;BR /&gt;   merge literal allows all of the command histories from all open tcsh shells&lt;BR /&gt;   to be recorded in one file, sorted by time stamp.&lt;BR /&gt;&lt;BR /&gt;NOTE that tcsh is a public domain application, not a Sun product therfore Sun&lt;BR /&gt;does NOT support it.  This information is only provided as a helpful suggestion&lt;BR /&gt;to customers who desire the ability to save multiple shell command histories.  &lt;BR /&gt;Sun does not support the tcsh shell, or problems caused by use of the tcsh&lt;BR /&gt;shell, in any way.      &lt;BR /&gt;&lt;BR /&gt;end quote&lt;BR /&gt;&lt;BR /&gt;it's a free document.&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Fri, 22 Nov 2002 20:52:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-export-history-amp-export-histsize/m-p/2850384#M934525</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2002-11-22T20:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between export HISTORY &amp; export HISTSIZE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-export-history-amp-export-histsize/m-p/2850385#M934526</link>
      <description>In C shell, history can be set to a positive integer and the shell will remember that many commands. The .history file is not necessarily required. However, if you do not have the .history file, you can only get the history of the current shell and cannot use a previous command in a different shell (window). &lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Mon, 25 Nov 2002 18:41:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-export-history-amp-export-histsize/m-p/2850385#M934526</guid>
      <dc:creator>Steve Labar</dc:creator>
      <dc:date>2002-11-25T18:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between export HISTORY &amp; export HISTSIZE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-export-history-amp-export-histsize/m-p/2850386#M934527</link>
      <description>Hi Nikee only&lt;BR /&gt;&lt;BR /&gt;This message is nothing to do with the subject. If yor are from Rly Kodur, India, please e-mail me on mbyreddy@hotmail.com.&lt;BR /&gt;&lt;BR /&gt;Please ignore this msg, if it is not relavent to you.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Madhu</description>
      <pubDate>Thu, 06 Mar 2003 05:38:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-export-history-amp-export-histsize/m-p/2850386#M934527</guid>
      <dc:creator>Madhu Byreddy</dc:creator>
      <dc:date>2003-03-06T05:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between export HISTORY &amp; export HISTSIZE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-export-history-amp-export-histsize/m-p/2850387#M934528</link>
      <description>AS mentioned, the man page for sh-posix as well as the man page for ksh describe the HISTFILE and HISTSIZE environment variables. To enable command recall, only HISTFILE needs to be defined, typically it is done in /etc/profile so all users will benefit. And to ensure the expected behavior for recall, be sure to eport EDITOR too. This is typical for /etc/profile:&lt;BR /&gt;&lt;BR /&gt;export HISTFILE=$HOME/.sh_history&lt;BR /&gt;export HISTSIZE=500&lt;BR /&gt;export EDITOR=/usr/bin/vi&lt;BR /&gt;&lt;BR /&gt;Note that in the POSIX shell for HP-UX, root must have the .sh_history file manually created for the first time, while ordinary users will have their .sh_history file created automatically.</description>
      <pubDate>Thu, 06 Mar 2003 06:40:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-export-history-amp-export-histsize/m-p/2850387#M934528</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-03-06T06:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between export HISTORY &amp; export HISTSIZE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-export-history-amp-export-histsize/m-p/2850388#M934529</link>
      <description>Hi Nikee&lt;BR /&gt;HISTSIZE is the environment variable used to count the numbers that history command can be remembered by POSIX shell.&lt;BR /&gt;No HISTORY variable.&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Mar 2003 07:05:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-export-history-amp-export-histsize/m-p/2850388#M934529</guid>
      <dc:creator>??_29</dc:creator>
      <dc:date>2003-03-06T07:05:37Z</dc:date>
    </item>
  </channel>
</rss>

