Unix/Linux

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • bash history

    9 answers - 105 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi
    how can i stop the bash log the history (.bash_history)?
    thanks
    from Peter
  • No.1 | | 171 bytes | |

    2005-08-20, cmk128@hotmail.com <cmk128@hotmail.comwrote:
    Hi
    how can i stop the bash log the history (.bash_history)?
    chmod 444 .bash_history
    Davide
  • No.2 | | 171 bytes | |

    2005-08-20, cmk128@hotmail.com <cmk128@hotmail.comwrote:
    how can i stop the bash log the history (.bash_history)?
    Change to zsh.
    nb
  • No.3 | | 226 bytes | |

    19 Aug 2005 21:03:05 -0700, cmk128@hotmail.com <cmk128@hotmail.comwrote:
    | Hi
    | how can i stop the bash log the history (.bash_history)?
    | thanks
    | from Peter
    man bash and search for 'HISTSIZE'
  • No.4 | | 358 bytes | |

    20 Aug 2005 08:29 UTC, Paul Colquhoun typed:
    man bash and search for 'HISTSIZE'

    another way I use to stop root commands being logged:

    if [ $EUID -eq 0 ] ; then
    unset HISTFILE
    fi

    placed in the appropriate file, /etc/profile in this case.

    course removing the first and third lines would stop all command logging
  • No.5 | | 156 bytes | |

    Hi
    I have place your script into /etc/profile, but still doesn't work.
    Do you have other solution?
    thanks
    from Peter
  • No.6 | | 898 bytes | |

    2005-08-22, cmk128@hotmail.com wrote:
    Hi
    I have place your script into /etc/profile,

    What script is that?

    Please quote enough of the post you are replying to to give the
    context of your own post. This is usenet, not a web forum (though
    it is also bastardized on several web sites).

    "If you want to post a followup via groups.google.com, don't use
    the broken "Reply" link at the bottom of the article. Click on
    "show options" at the top of the article, then click on the
    "Reply" at the bottom of the article headers." - Keith Thompson

    but still doesn't work.

    What does "doesn't work" mean? What DID it do? What is it supposed
    to do?

    Do you have other solution?

    Solution to what?

    Have you read the INVCATIN section of the bash man page? Do you
    know when /etc/profile is sourced and when it isn't?
  • No.7 | | 249 bytes | |

    cmk128@hotmail.com wrote:
    how can i stop the bash log the history (.bash_history)?
    man bash. Variables HISTRY HISTSIZE HISTCNTRL HISTIGNRE HISTFILE
    HISTFILESIZE etc.
    Does your manpage browser not work?
    Peter
  • No.8 | | 784 bytes | |

    cmk128@hotmail.com wrote:
    I have place your script into /etc/profile, but still doesn't work.

    Then put it somwhere else, somewhere where it is EXECUTED?

    What is your problem?

    Do you have other solution?

    It involves extermination of stupid people who do things they alone
    dreamed up without rhyme or reason and then ask why they don't work.
    You need a reason for something to work, not a reason why it does not!
    Things don't work by default. What makes you think that putting the
    lines you put in /etc/profile would have any effect? What makes you
    think that putting ANY lines in /etc/profile would have any effect on
    anything?

    And above all - please NEVER PUT ANYTHING IN /etc/profile!

    Peter
  • No.9 | | 128 bytes | |

    yes, i tried to put it is .bashrc and run it ". .bashrc", but the still
    logging the command history.
    :)

Re: bash history


max 4000 letters.
Your nickname that display:
In order to stop the spam: 2 + 1 =
QUESTION ON "Unix/Linux"

EMSDN.COM