On Wednesday 30 October 2002 09:23 am, you is done writ: > Words by Gordon Ewasiuk [Wed, Oct 30, 2002 at 06:29:46AM -0500]: > > On Wed, 30 Oct 2002, Ramesh Pathak wrote: > > > From: "Emmanuel Seyman" <[EMAIL PROTECTED]> > > > Sent: Wednesday, October 30, 2002 5:41 PM >> > > On Wed, Oct 30, 2002 at 05:15:23PM +0800, Roger wrote:
> > > > My question is the same as the subject, how to delete the bash > > > > history of root. any suggestion is appreciated > > > Good Question .. In fact I wud also love to know how to do this ... > > > > > > if without logout how to do? <snip of rm ~/.bash_history> > > > Yes, but it will not delete the history items stores in memory, not yet > flushed to ~/.bash_history, at logout they will all be writen to that > file. If you export the HISTFILE to /dev/null they will be flushed to > /dev/null: <snip> > Indeed. > unset HISTFILE; rm -rf /root/.bash_history; Missed one - Put the unset command, above, in your .bashrc, and add a line that reads unset HISTFILESIZE which will prevent a history file from being written in the first place. I won't even *ask* the obvious question, just why you want to leave no history file behind, for your next session. mark "that's a question for your sysadmin/security administrator -- Mark Roth Unix/Linux systems administrator & software developer HUSO Support, a division of Prometheus Unbound: Affordable Linux technical support and training for the home user and small business. For more information, please contact us at: email <[EMAIL PROTECTED]> phone +1 773 274 2584 -- redhat-list mailing list unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list