<?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: .bash_history in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171116#M9302</link>
    <description>Harstad,&lt;BR /&gt;&lt;BR /&gt;What history file are you looking at?&lt;BR /&gt;&lt;BR /&gt;/.bash_history or /root/.bash_history?&lt;BR /&gt;&lt;BR /&gt;Have you made sure that you are looking in root's homedir?&lt;BR /&gt;&lt;BR /&gt;Finally, it may be worth reading some documentation on bash... ;-)&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 23 Jan 2004 06:21:08 GMT</pubDate>
    <dc:creator>Basil_4</dc:creator>
    <dc:date>2004-01-23T06:21:08Z</dc:date>
    <item>
      <title>.bash_history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171107#M9293</link>
      <description>Hi All&lt;BR /&gt;&lt;BR /&gt;IÂ´ve defined  for "root" (.bash_profile)the following :&lt;BR /&gt;&lt;BR /&gt;HISTFILE=/.bash_history&lt;BR /&gt;HISTSIZE=1000&lt;BR /&gt;&lt;BR /&gt;Checking the .bash_history there are no new entries,,&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 22 Jan 2004 09:55:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171107#M9293</guid>
      <dc:creator>Harstad</dc:creator>
      <dc:date>2004-01-22T09:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: .bash_history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171108#M9294</link>
      <description>hi,&lt;BR /&gt;Should be &lt;BR /&gt;HISTFILE=/root/.bash_history&lt;BR /&gt;HISTFILE=1000&lt;BR /&gt;export $HISTFILE&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;J</description>
      <pubDate>Thu, 22 Jan 2004 10:49:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171108#M9294</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2004-01-22T10:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: .bash_history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171109#M9295</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;less .bash_profile&lt;BR /&gt;&lt;BR /&gt;HISTFILE=/root/.bash_history&lt;BR /&gt;HISTSIZE=20480&lt;BR /&gt;&lt;BR /&gt;export both one,,,&lt;BR /&gt;&lt;BR /&gt;Login again,,,and there are no entries in .bash_history&lt;BR /&gt;&lt;BR /&gt;strange,,,</description>
      <pubDate>Thu, 22 Jan 2004 10:54:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171109#M9295</guid>
      <dc:creator>Harstad</dc:creator>
      <dc:date>2004-01-22T10:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: .bash_history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171110#M9296</link>
      <description>log on as root&lt;BR /&gt;&lt;BR /&gt;env | more&lt;BR /&gt;&lt;BR /&gt;see if the variables are set.&lt;BR /&gt;&lt;BR /&gt;If not, take actons already recommended.&lt;BR /&gt;&lt;BR /&gt;Check the permissions on .bash_history&lt;BR /&gt;&lt;BR /&gt;They need to be rw by the owner and root needs to own it.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 22 Jan 2004 11:05:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171110#M9296</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-01-22T11:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: .bash_history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171111#M9297</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;All checked,,and continuos without entries&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jan 2004 11:34:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171111#M9297</guid>
      <dc:creator>Harstad</dc:creator>
      <dc:date>2004-01-22T11:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: .bash_history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171112#M9298</link>
      <description>I have similar in my .profile, but I have $HOME defined so that it will always put it in the current user's home dir...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;REAL equals the user name as you su to root.&lt;BR /&gt;&lt;BR /&gt;REAL=`logname`&lt;BR /&gt;&lt;BR /&gt;HISTFILE=$HOME/.sh_$REAL&lt;BR /&gt;export HISTFILE&lt;BR /&gt;HISTSIZE=1000; export HISTSIZE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Modify as you can to fit your shell...</description>
      <pubDate>Thu, 22 Jan 2004 12:05:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171112#M9298</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2004-01-22T12:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: .bash_history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171113#M9299</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;bash should create a history without you setting any of these variables. So to establish a baseline I do suggest to remove the current &lt;BR /&gt;.bash_history and remove the environment variables from the profile.&lt;BR /&gt;&lt;BR /&gt;The login again, check if the history file gets/created filled.&lt;BR /&gt;In teh next step put in your environment variables again. Put echo statements in the script to make sure it actually gets executed during root login,&lt;BR /&gt;use printenv | grep -i hist to make sure the variables have been set.&lt;BR /&gt;&lt;BR /&gt;HTH, Martin</description>
      <pubDate>Thu, 22 Jan 2004 12:09:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171113#M9299</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-01-22T12:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: .bash_history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171114#M9300</link>
      <description>The main difference with my suggestion is that each and every user will have a separate history file... &lt;BR /&gt;&lt;BR /&gt;I do this b/c I have several folks who have root access and I like to keep all our history files separate just because it is neater imho.&lt;BR /&gt;&lt;BR /&gt;HPUX creates a generic catch-all history file as well, but I like to break it out for each root user, not for security, but for ease of reference and esp if more than one user is logged in as root at one time, which happens occasionally.</description>
      <pubDate>Thu, 22 Jan 2004 12:15:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171114#M9300</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2004-01-22T12:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: .bash_history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171115#M9301</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;what does the&lt;BR /&gt;env |grep HIST&lt;BR /&gt;command returns?&lt;BR /&gt;there are more files for profile settings:&lt;BR /&gt;.bashrc &lt;BR /&gt;/etc/bashrc&lt;BR /&gt;/etc/profile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards...</description>
      <pubDate>Thu, 22 Jan 2004 15:24:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171115#M9301</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-01-22T15:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: .bash_history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171116#M9302</link>
      <description>Harstad,&lt;BR /&gt;&lt;BR /&gt;What history file are you looking at?&lt;BR /&gt;&lt;BR /&gt;/.bash_history or /root/.bash_history?&lt;BR /&gt;&lt;BR /&gt;Have you made sure that you are looking in root's homedir?&lt;BR /&gt;&lt;BR /&gt;Finally, it may be worth reading some documentation on bash... ;-)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Jan 2004 06:21:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171116#M9302</guid>
      <dc:creator>Basil_4</dc:creator>
      <dc:date>2004-01-23T06:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: .bash_history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171117#M9303</link>
      <description>Basil,&lt;BR /&gt;&lt;BR /&gt;Thats why I recommended using $HOME... that way you are SURE what profile you are utilizing.</description>
      <pubDate>Fri, 23 Jan 2004 09:21:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-history/m-p/3171117#M9303</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2004-01-23T09:21:56Z</dc:date>
    </item>
  </channel>
</rss>

