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

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



On 01/11/2019 05:00 AM, Peter Nabbefeld wrote:
> Hm, I guess it's because it has been saved once (by closing the tab)

If you have more than one tab open (e.g. you have several terminals open in
tabs -- like you can do in konsole in KDE), then the buffering of history is
handled in an application specific way (you only have one ~/.bash_history
file, but you have multiple terminals open that feed information to it)

When you need to modify your ~/.bash_history content, I generally close all
apps that have a terminal and just use a single xterm to manipulate the
history file. You can actually write your history file out to a separate text
file, remove entries, and then read it back in as your history.

see the -w and -r options to history in man bash.

-- 
David C. Rankin, J.D.,P.E.



[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