D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] lost shell history

 

David Johnson wrote:
On Friday 16 Oct 2009 20:39:40 james kilty wrote:
Hello

I seem  to have a shell history of 3 entriesonly. It used to be a LOT
longer and a very useful resource as I'll have to work everything out
again without it.


Have a look in the following files for a line like HISTFILESIZE=something:

~/.bashrc
~/.bash_profile

If not in those, check:

/etc/bash.bashrc

When you find the line, just comment it out. By default bash will keep 500 lines of history, so something must be over-riding it.

Regards,
David.

Maybe it is in .login in your home directory


--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html