I keep finding new files in the following format “.bash_history-49563.tmp” in my home directory. The files are all empty so I don’t have any lead to a solution. I suppose I could write a script to delete them at boot time, but I don’t think that’s the “correct” solution. Thanks for any advice.
This is happening because there is no limit set for bash history so default values are used
It is perfectly described here
https://www.baeldung.com/linux/bash-configure-unlimited-history