<?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: how to modify the history file in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-modify-the-history-file/m-p/5240983#M52161</link>
    <description>As a system administrator ...  you should be honest to your work .. &lt;BR /&gt;&lt;BR /&gt;its not good practice to hide the mistakes which  you done on production servers.&lt;BR /&gt;&lt;BR /&gt;its productions servers &amp;amp; simple mistakes can cause loss of revenue...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if  you interested to know  how users can edit history file .. i can give some tips...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1. As default  user can "vi history" file &amp;amp; remove unwanted commands. but  its traceable.. any body can say that user have edited history file &lt;BR /&gt;&lt;BR /&gt;2. create a script in /tmp/ &amp;amp; put entry  rm /.history in that. if user run the script .. history file will be deleted.. there is very less chance the we can trace it.&lt;BR /&gt;&lt;BR /&gt;3. else  user can use  sed instead of rm to remove only one line/command.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But, if you have strong user mgnt utilities like power broker installed in your box. user can't hide anything . it will capture command as well as output.&lt;BR /&gt;&lt;BR /&gt;sudo logging also another  gud way to capture user activities.&lt;BR /&gt;&lt;BR /&gt;Hope this will be helpful for you &lt;BR /&gt;&lt;BR /&gt;Gudluck&lt;BR /&gt;Prasanth</description>
    <pubDate>Wed, 26 May 2010 06:16:15 GMT</pubDate>
    <dc:creator>Prasanth V Aravind</dc:creator>
    <dc:date>2010-05-26T06:16:15Z</dc:date>
    <item>
      <title>how to modify the history file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-modify-the-history-file/m-p/5240979#M52157</link>
      <description>Hello Gurus,&lt;BR /&gt;&lt;BR /&gt;I am working on a production servers, hence all the commands I type and work are captured.&lt;BR /&gt;Could some one of you assist, how to modify the history file?&lt;BR /&gt;&lt;BR /&gt;To be frank, in case if I do a mistake, how can get away from that :P</description>
      <pubDate>Tue, 25 May 2010 12:23:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-modify-the-history-file/m-p/5240979#M52157</guid>
      <dc:creator>bullz</dc:creator>
      <dc:date>2010-05-25T12:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify the history file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-modify-the-history-file/m-p/5240980#M52158</link>
      <description>I'm not sure I understood correctly, but in order to modify the history file in bash simply edit the ~/.bash_history file.</description>
      <pubDate>Tue, 25 May 2010 12:51:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-modify-the-history-file/m-p/5240980#M52158</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2010-05-25T12:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify the history file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-modify-the-history-file/m-p/5240981#M52159</link>
      <description>the history file helps investigation, find root cause, one better leaves it alone.</description>
      <pubDate>Tue, 25 May 2010 15:38:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-modify-the-history-file/m-p/5240981#M52159</guid>
      <dc:creator>John Guster</dc:creator>
      <dc:date>2010-05-25T15:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify the history file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-modify-the-history-file/m-p/5240982#M52160</link>
      <description>Ummm - if you make a mistake, it's far better to be able to see it exactly as typed to know the scope of the problem and how to fix.  Just thinking like you're doing is just wrong, wrong, wrong.</description>
      <pubDate>Tue, 25 May 2010 17:24:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-modify-the-history-file/m-p/5240982#M52160</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2010-05-25T17:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify the history file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-modify-the-history-file/m-p/5240983#M52161</link>
      <description>As a system administrator ...  you should be honest to your work .. &lt;BR /&gt;&lt;BR /&gt;its not good practice to hide the mistakes which  you done on production servers.&lt;BR /&gt;&lt;BR /&gt;its productions servers &amp;amp; simple mistakes can cause loss of revenue...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if  you interested to know  how users can edit history file .. i can give some tips...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1. As default  user can "vi history" file &amp;amp; remove unwanted commands. but  its traceable.. any body can say that user have edited history file &lt;BR /&gt;&lt;BR /&gt;2. create a script in /tmp/ &amp;amp; put entry  rm /.history in that. if user run the script .. history file will be deleted.. there is very less chance the we can trace it.&lt;BR /&gt;&lt;BR /&gt;3. else  user can use  sed instead of rm to remove only one line/command.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But, if you have strong user mgnt utilities like power broker installed in your box. user can't hide anything . it will capture command as well as output.&lt;BR /&gt;&lt;BR /&gt;sudo logging also another  gud way to capture user activities.&lt;BR /&gt;&lt;BR /&gt;Hope this will be helpful for you &lt;BR /&gt;&lt;BR /&gt;Gudluck&lt;BR /&gt;Prasanth</description>
      <pubDate>Wed, 26 May 2010 06:16:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-modify-the-history-file/m-p/5240983#M52161</guid>
      <dc:creator>Prasanth V Aravind</dc:creator>
      <dc:date>2010-05-26T06:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify the history file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-modify-the-history-file/m-p/5240984#M52162</link>
      <description>Hi bullz, &lt;BR /&gt;&lt;BR /&gt;To modify the history file,&lt;BR /&gt;* If you login as root,&lt;BR /&gt;  cd /root&lt;BR /&gt;  vi .bash_history&lt;BR /&gt;&lt;BR /&gt;* If you login as user,&lt;BR /&gt;  cd /home/&lt;USER-NAME&gt;&lt;BR /&gt;  vi .bash_history&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; To be frank, in case if I do a mistake, how can get away from that :P&lt;BR /&gt;I would suggest you to not make any changes to the history file.&lt;BR /&gt;If you do any mistake then remember that you or somebody else have to fix the&lt;BR /&gt;problem. When fixing the problem, it becomes important to know what was the&lt;BR /&gt;set of commands that were executed on that system. To root cause the issue&lt;BR /&gt;the history file may provide clues.&lt;BR /&gt;&lt;BR /&gt;As you are working on a production server, firstly you need to be sure of&lt;BR /&gt;what you are doing on the production server. This forum is always there for&lt;BR /&gt;any clarification that you may need.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Murali&lt;/USER-NAME&gt;</description>
      <pubDate>Wed, 26 May 2010 06:44:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-modify-the-history-file/m-p/5240984#M52162</guid>
      <dc:creator>P Muralidhar Kini</dc:creator>
      <dc:date>2010-05-26T06:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify the history file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-modify-the-history-file/m-p/5240985#M52163</link>
      <description>Thanks all</description>
      <pubDate>Sun, 04 Jul 2010 20:51:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-modify-the-history-file/m-p/5240985#M52163</guid>
      <dc:creator>bullz</dc:creator>
      <dc:date>2010-07-04T20:51:05Z</dc:date>
    </item>
  </channel>
</rss>

