Possibilities: If HISTFILE is unset or null, the shell does not save the command history when it exits. You also have HISTSIZE and if that is 0 it does not save history. You also have HISTFILESIZE and that being 0 does not save history.
There may be other ways to get no history. Some sort of bad permissions on HISTFILE might do it, especially if it was something like the readonly attr setting (lsattr). So check your current settings of those variables and see how they are set. On Tue, Oct 6, 2026 at 4:50 PM Dave Close <[email protected]> wrote: > > Not really history as in "!<number>" to select a previous command. > But perhaps related. > > On most of my Fedora systems, bash remembers the last commands entered > prior to a restart. After the system restarts, a new bash window shows > the last previous command when I press the up-arrow key and multiple > presses continue to show previous commands in reverse order. > > On one system only, nothing happens when I press that key. On that > one system after I've entered commands, up-arrow shows the previous > commands in reverse order as I expect. Except that it doesn't go back > beyond the first new command after the restart. This happens on each > new bash window on that system, even after other windows have started > to respond to the up-arrow key. > > I presume some history file is being deleted as a byproduct of the > restart. But I can't seem to find whatever option controls that > behavior, perhaps because I haven't used the right name to search for > it. It clearly isn't the .bash_history file as that file is present > after a restart (though it doesn't appear to have been updated for > months). Please clue me in. > -- > Dave Close, Compata, Irvine CA +1 714 434 7359 > [email protected] [email protected] > "Any fool can make something complicated. > It takes a genius to make it simple." -- Woody Guthrie > > -- > _______________________________________________ > users mailing list -- [email protected] > To unsubscribe send an email to [email protected] > Fedora Code of Conduct: > https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/[email protected] > Do not reply to spam, report it: > https://forge.fedoraproject.org/infra/tickets/issues/new -- _______________________________________________ users mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
