<?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 v. ksh history in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/bash-v-ksh-history/m-p/3336694#M72576</link>
    <description>export PS1='$(history -w)\w\$ '&lt;BR /&gt;&lt;BR /&gt;Did a near enough approximation.&lt;BR /&gt;&lt;BR /&gt;Thanks all!</description>
    <pubDate>Thu, 22 Jul 2004 15:26:11 GMT</pubDate>
    <dc:creator>A. Daniel King_1</dc:creator>
    <dc:date>2004-07-22T15:26:11Z</dc:date>
    <item>
      <title>bash v. ksh history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-v-ksh-history/m-p/3336690#M72572</link>
      <description>Hi, folks.&lt;BR /&gt;&lt;BR /&gt;From the bash man page, I see:&lt;BR /&gt;&lt;BR /&gt;histappend&lt;BR /&gt;If set, the history list is appended to the file named by the value of the HISTFILE variable when the shell exits, rather than overwriting the file.&lt;BR /&gt;&lt;BR /&gt;Q:  Is there a way to make bash history save immediately upon execution, like HP-UX ksh, instead of upon exit?&lt;BR /&gt;&lt;BR /&gt;Thanks, all.</description>
      <pubDate>Tue, 20 Jul 2004 16:19:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-v-ksh-history/m-p/3336690#M72572</guid>
      <dc:creator>A. Daniel King_1</dc:creator>
      <dc:date>2004-07-20T16:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: bash v. ksh history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-v-ksh-history/m-p/3336691#M72573</link>
      <description>I think that's how the bash_history file works. A work around would be to run the 'history -w' command time-to-time manually to write the history to the history file. &lt;BR /&gt;May be you can automate this somehow to achieve the desired result.&lt;BR /&gt;&lt;BR /&gt;regds,&lt;BR /&gt;Abdul.</description>
      <pubDate>Wed, 21 Jul 2004 12:01:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-v-ksh-history/m-p/3336691#M72573</guid>
      <dc:creator>Abdul Rahiman</dc:creator>
      <dc:date>2004-07-21T12:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: bash v. ksh history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-v-ksh-history/m-p/3336692#M72574</link>
      <description>hai,&lt;BR /&gt;&lt;BR /&gt; bash shell is more efficient and effective that korn shell. It is a advanced one and a superset of all shells.&lt;BR /&gt;&lt;BR /&gt; By default, history command will add the history of commans to $HISTFILE ( $HOME/.bash_history)&lt;BR /&gt;&lt;BR /&gt; You can view the view or execute as  #history with out any argument. &lt;BR /&gt;&lt;BR /&gt; bash will store the history of commands upong execution. You can know it as,&lt;BR /&gt; # history | tail -10&lt;BR /&gt; you will see the history | tail -10 in the list. &lt;BR /&gt;&lt;BR /&gt; If you want to overrite the history file then use history -w or set the histappend shell variable as 1 in .bash_profile file.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jul 2004 13:14:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-v-ksh-history/m-p/3336692#M72574</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-07-21T13:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: bash v. ksh history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-v-ksh-history/m-p/3336693#M72575</link>
      <description>I've noticed there is a lag in updating the .bash_history file.&lt;BR /&gt;&lt;BR /&gt;For example&lt;BR /&gt;&lt;BR /&gt;Two root sessions open:&lt;BR /&gt;&lt;BR /&gt;do a few commands in session 1.&lt;BR /&gt;&lt;BR /&gt;go to session 2 and those commands are not available in session 2.&lt;BR /&gt;&lt;BR /&gt;It gets annoying. I've played with this for some time but not been able to get immediate update.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 21 Jul 2004 13:20:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-v-ksh-history/m-p/3336693#M72575</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-07-21T13:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: bash v. ksh history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-v-ksh-history/m-p/3336694#M72576</link>
      <description>export PS1='$(history -w)\w\$ '&lt;BR /&gt;&lt;BR /&gt;Did a near enough approximation.&lt;BR /&gt;&lt;BR /&gt;Thanks all!</description>
      <pubDate>Thu, 22 Jul 2004 15:26:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-v-ksh-history/m-p/3336694#M72576</guid>
      <dc:creator>A. Daniel King_1</dc:creator>
      <dc:date>2004-07-22T15:26:11Z</dc:date>
    </item>
  </channel>
</rss>

