Re: Bash History How to?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Frank Murphy wrote:
> I would like to prevent .bash_history being
> created for root.
> 
> And when "sudo" invoked by user.
> 
> Have tried:
> export HISTCONTROL=ignoreboth
> 
> but nothing seems to be added to .bashrc
> 
> this has come abote as I seem to have
> /tmp/.bash_history
> which may not be good :(
> 
You can add "[ -f $HISTFILE ] && rm $HISTFILE" to your .bashrc. Or just the rm 
command if you're more trusting than I...

-- 
Bill Davidsen <davidsen@xxxxxxx>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux