Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 01-16-2007, 03:03 PM   #1
Registered: Oct 2004
Location: /usr/home
Distribution: Fedora, Mint, FreeBSD, Android
Posts: 349

Rep: Reputation: 32
how to save bash history between reboots?

Hi all,

How does one preserve the bash history between reboots? This seems on by default under Linux but not the case under FreeBSD. I added "HISTSIZE=500" to .bash_profile, but that doesn't appear to be enough.

Old 01-16-2007, 03:28 PM   #2
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Rep: Reputation: 15
IIRC, you have to set a filename in HISTFILE. if this variable is not set at all, history is not saved upon logout.

I bet, there are also some other ways to achieve this..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
need someone to look into this bash history bytez Linux - General 7 10-16-2006 10:26 PM
save history from konqueror steelheat Linux - Desktop 1 09-10-2006 09:11 AM
Where does KDE's run command save history? ljubak Linux - Desktop 1 08-28-2006 04:21 PM
zaurus (OZ 3.3.5) can konsole save comand history? Brain Drop Linux - Laptop and Netbook 1 04-02-2004 09:40 AM

All times are GMT -5. The time now is 10:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration