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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux