Re: deleting login history after logging out

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

 



> Please tell me how to delete the user's bash history file after
> he or she logs out.
> I tried this /etc/skel/bash_logout
>
> rm -f $HOME/bash_history
>
> But it is not working.
>
> Can anyone tell me how to do this .I want to do it for every user.

I don't know much about the use of bash_logout, but the
file is:
$HOME/.bash_history
not:
$HOME/bash_history

Alternatively the command:
history -c
should work.  (See history under builtin commands, man bash)

--
imalone


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

  Powered by Linux