Re: [Xfce-terminal] Cannot remove entries from history

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



Hi Peter,

> > Does it gain new lines at the bottom as you enter commands in a
> > terminal?  Or only when the terminal exits?  Do those lines include
> > test ones that you've deleted?
>
> Yes, thank You, Ralph. Indeed, I forgot about that, as I'm usually not
> changing that. IMHO it's nevertheless a bad concept those removed
> commands are still stored inside this file. In my case, the problem
> was my sudo password, which I accidently typed in because sudo timeout
> had not yet been reached.

If I open a terminal for a new bash and enter

    echo 1
    echo 2
    echo 3

and then `history -d ...' so `history' shows `echo 2' is missing and
there's a gap in the history numbering, the .bash_history written when I
exit bash does *not* include the deleted `echo 2' line.

So either you didn't delete your password line(s), or something else is
going on and my tests above were probing what.  :-)

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux