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

Re: deleting login history after logging out



> 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


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