Re: Advanced use of history in some bash shell

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

 



Do a 'man history' and you'll get everything under the sun you can tweak as far as history is
concerned.

To increase the history size tweak the HISTSIZE, HISTFILESIZE variables.
To change the history file per new shell you can dynamically change HISTFILE.
Say put a command to create a temporary file in one of the login scripts (.bashrc):

export HISTFILE="$HOME/.bash_history_$$"

which appends the PID of the shell to the name, and then when you logout
merge the history file by putting in .bash_logout

history -w
cat $HISTFILE >> .bash_history

Now as far as the permissions are concered I am lacking imagination how to do
that. I can't think how the same user can prevent himself from viewing one of his
files just because a different shell created it.


Filippos

On 5/12/06, Ambrogio <fn050202@xxxxxxxxxxx > wrote:
Hi all,

I would like to have my shells to be compliant to those things.

1. A large number of slot for history so I don't lose command.
2. Each shell has proper history, so command issued in one shell are not
viewed on others
3. But when shell is closed, commands are appended to history files, and
not overwritten

Is this possible?
Where ca I act to change default behavior of shell history?

Tnx to all
Ambrogio

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


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

  Powered by Linux