<?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 record in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/history-record/m-p/4997216#M423706</link>
    <description>Under user's home direcory, there is .sh_history file, you can find operation history from that file</description>
    <pubDate>Mon, 14 Aug 2006 21:05:35 GMT</pubDate>
    <dc:creator>rayche</dc:creator>
    <dc:date>2006-08-14T21:05:35Z</dc:date>
    <item>
      <title>history record</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/history-record/m-p/4997215#M423705</link>
      <description>Hello，&lt;BR /&gt;I want to record in the system all users' operation, how do I need to do? Thanks！</description>
      <pubDate>Mon, 14 Aug 2006 19:48:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/history-record/m-p/4997215#M423705</guid>
      <dc:creator>asce</dc:creator>
      <dc:date>2006-08-14T19:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: history record</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/history-record/m-p/4997216#M423706</link>
      <description>Under user's home direcory, there is .sh_history file, you can find operation history from that file</description>
      <pubDate>Mon, 14 Aug 2006 21:05:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/history-record/m-p/4997216#M423706</guid>
      <dc:creator>rayche</dc:creator>
      <dc:date>2006-08-14T21:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: history record</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/history-record/m-p/4997217#M423707</link>
      <description>Depends upon the shell.  For ksh use HISTSIZE.  I.e., in /home/user/.profile include:&lt;BR /&gt;&lt;BR /&gt;export HISTSIZE=3000&lt;BR /&gt;&lt;BR /&gt;HISTSIZE 3000 will record the last 3000 commands of the user.  Default is about 100.  To search type in 'history'.  I.e.,&lt;BR /&gt;&lt;BR /&gt;history -1000 | grep -i command</description>
      <pubDate>Mon, 14 Aug 2006 21:56:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/history-record/m-p/4997217#M423707</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2006-08-14T21:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: history record</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/history-record/m-p/4997218#M423708</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;you can define $HISTFILE variable in user profile file too.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;export HISTFILE=/root/users_history/$USER.log&lt;BR /&gt;export HISTSIZE=900000000&lt;BR /&gt;&lt;BR /&gt;and don't forget to set right permission for /root/users_history/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Aug 2006 04:55:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/history-record/m-p/4997218#M423708</guid>
      <dc:creator>Marek Mahut</dc:creator>
      <dc:date>2006-08-15T04:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: history record</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/history-record/m-p/4997219#M423709</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Under sh-posix and ksh, command history is saved to ~/.sh_history by default.  To see the complete history for all users:&lt;BR /&gt;&lt;BR /&gt;# more /home/*/.sh_history&lt;BR /&gt;&lt;BR /&gt;To see the last ten commands entered by all users:&lt;BR /&gt;&lt;BR /&gt;# find /home -name .sh_history -exec tail -n 10 {} \;&lt;BR /&gt;&lt;BR /&gt;Set $HISTSIZE=5000 in each user's ~/.profile to keep a large command history for each user.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Tue, 15 Aug 2006 06:31:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/history-record/m-p/4997219#M423709</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-08-15T06:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: history record</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/history-record/m-p/4997220#M423710</link>
      <description>If you expect to have a total record - you can't.&lt;BR /&gt;&lt;BR /&gt;Though if you convert to a trusted system, you can turn on auditing.&lt;BR /&gt;&lt;BR /&gt;With .sh_history - users can delete it whenever they like.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 15 Aug 2006 07:33:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/history-record/m-p/4997220#M423710</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-08-15T07:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: history record</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/history-record/m-p/4997221#M423711</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Read up on the 'script' command, which makes a typescript of everything on the terminal.  You could add the following to /etc/profile:&lt;BR /&gt;&lt;BR /&gt;# script -a /tmp/scr-$(whoami).log&lt;BR /&gt;&lt;BR /&gt;If you modify your users' $PS1 prompt to display the current date/time, items in your typescript will be timestamped.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Tue, 15 Aug 2006 08:46:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/history-record/m-p/4997221#M423711</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-08-15T08:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: history record</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/history-record/m-p/4997222#M423712</link>
      <description>Shell histories are ok, but as stated a user can clear it out whenever they want. The only way would be with auditing, and If you are recording everything users do, I suspect you are going to need a decent sized disk, depending on how long you plan to keep the logs. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Aug 2006 08:49:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/history-record/m-p/4997222#M423712</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2006-08-15T08:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: history record</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/history-record/m-p/4997223#M423713</link>
      <description>thanks!</description>
      <pubDate>Thu, 08 Jan 2009 17:01:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/history-record/m-p/4997223#M423713</guid>
      <dc:creator>asce</dc:creator>
      <dc:date>2009-01-08T17:01:08Z</dc:date>
    </item>
  </channel>
</rss>

