How to find full command history, including previous sessions?
I'm trying to access all previous commands from the interactive sage shell, and I'm hoping to find something like .bash_history
somewhere.
As far as I can tell, I can search previous commands by entering %hist
, but this only gets me the session history.
I can also go through each previous command one-by-one by hitting the up key, but that's a little too tedious for me.
I think there is a file called history.sqlite
at ~/.sage/ipython-5.0.0
but that's unreadable (and possible not from the interactive shell).
Is there a way to find the full history (or as much of it as is recently stored?)
I think
history.sqlite
is the right file. There are various suggestions for how to access the full history at https://stackoverflow.com/questions/2..., including%history -g
.@John Palmieri Thanks, I had literally just found that post (after searching for 'ipython history') and came to add it as an answer! That's enough for what I want; if you enter your comment as an answer I can accept if you'd like.