<?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: History Command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/history-command/m-p/4659341#M677294</link>
    <description>&amp;gt; It gives parameter not set...&lt;BR /&gt; &lt;BR /&gt;This is a very common problem for every HP-UX system. These two commands are missing from /etc/profile:&lt;BR /&gt; &lt;BR /&gt;export HISTFILE=$HOME/.sh_history&lt;BR /&gt;export HISTSIZE=10000&lt;BR /&gt; &lt;BR /&gt;Then for the root user, type:&lt;BR /&gt; &lt;BR /&gt;umask 077&lt;BR /&gt;touch $HOME/.sh_history&lt;BR /&gt; &lt;BR /&gt;This is required only for root - other users can use history immediately after they login. Now logout and log back in as root and type a simple command like pwd followed by: history. Since history is used a lot, I like to create an additional alias in .profile like this:&lt;BR /&gt; &lt;BR /&gt;alias h='fc -l'&lt;BR /&gt; &lt;BR /&gt;Now I just type h to get a history.</description>
    <pubDate>Sat, 10 Jul 2010 12:38:23 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2010-07-10T12:38:23Z</dc:date>
    <item>
      <title>History Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/history-command/m-p/4659336#M677288</link>
      <description>when I run history command this message appear:&lt;BR /&gt;sh: fc: Cannot access or open the history file.&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Jul 2010 12:30:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/history-command/m-p/4659336#M677288</guid>
      <dc:creator>CU_1</dc:creator>
      <dc:date>2010-07-09T12:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: History Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/history-command/m-p/4659337#M677289</link>
      <description>Try this:&lt;BR /&gt;&lt;BR /&gt;echo $HISTFILE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 09 Jul 2010 14:00:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/history-command/m-p/4659337#M677289</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2010-07-09T14:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: History Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/history-command/m-p/4659338#M677290</link>
      <description>Sorry, I should have thought a bit before I hit submit.  ;^(&lt;BR /&gt;&lt;BR /&gt;If the above echo statement does return a value for histfile, check the file's permissions.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 09 Jul 2010 14:02:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/history-command/m-p/4659338#M677290</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2010-07-09T14:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: History Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/history-command/m-p/4659339#M677291</link>
      <description>Pete &lt;BR /&gt;thank you for response&lt;BR /&gt;It gives parameter not set</description>
      <pubDate>Fri, 09 Jul 2010 15:38:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/history-command/m-p/4659339#M677291</guid>
      <dc:creator>CU_1</dc:creator>
      <dc:date>2010-07-09T15:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: History Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/history-command/m-p/4659340#M677292</link>
      <description>&amp;gt;It gives parameter not set&lt;BR /&gt;&lt;BR /&gt;Then you should export HISTFILE and HISTSIZE and restart your shell.</description>
      <pubDate>Sat, 10 Jul 2010 01:16:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/history-command/m-p/4659340#M677292</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-07-10T01:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: History Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/history-command/m-p/4659341#M677294</link>
      <description>&amp;gt; It gives parameter not set...&lt;BR /&gt; &lt;BR /&gt;This is a very common problem for every HP-UX system. These two commands are missing from /etc/profile:&lt;BR /&gt; &lt;BR /&gt;export HISTFILE=$HOME/.sh_history&lt;BR /&gt;export HISTSIZE=10000&lt;BR /&gt; &lt;BR /&gt;Then for the root user, type:&lt;BR /&gt; &lt;BR /&gt;umask 077&lt;BR /&gt;touch $HOME/.sh_history&lt;BR /&gt; &lt;BR /&gt;This is required only for root - other users can use history immediately after they login. Now logout and log back in as root and type a simple command like pwd followed by: history. Since history is used a lot, I like to create an additional alias in .profile like this:&lt;BR /&gt; &lt;BR /&gt;alias h='fc -l'&lt;BR /&gt; &lt;BR /&gt;Now I just type h to get a history.</description>
      <pubDate>Sat, 10 Jul 2010 12:38:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/history-command/m-p/4659341#M677294</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-07-10T12:38:23Z</dc:date>
    </item>
  </channel>
</rss>

