Re: save commands history.

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

 



On Tue, Mar 16, 2004 at 09:00:33AM -0800, Ben Yau wrote:
> > > And what prevents him from clearing the log in his logout script?
> > > You'll just get a nice empty file mailed to you every time he logs
> > > in....
> > >
> > True, I didn't know how linux savvy of a user he was dealing with. Ours
> > wasn't and this worked for us.
> >
> 
> Actually, even if he empties it on logout, it will still write the commands
> from that login sessoin.  bash will write the command history as the last
> step of logging out.  Try it out yourself . Put
> 
> echo "" > ~/.bash_history

Replace that with:
history -c

Poof, history gone.  Verified.

-- 
Ed Wilts, Mounds View, MN, USA
mailto:ewilts@xxxxxxxxxx
Member #1, Red Hat Community Ambassador Program


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux