Do not show my history of past commands
I use a Fedora 19 and it do not show my history of past commands.
How can I restore my history in my terminal?
I use a Fedora 19 and it do not show my history of past commands.
How can I restore my history in my terminal?
If you close a session uncleanly, your history won't be written to ~/.bash_history. I get around this with the following line in ~/.bashrc:
This adds history -a
to the existing PROMPT_COMMAND variable, with the result of appending to your history after every command you execute.
Asked: 2014-03-25 10:13:15 -0500
Seen: 130 times
Last updated: Mar 25 '14
When you execute the "history" command, do you see nothing? Check your ~/.bash_profile configuration file and make sure it doesn't specify HISTSIZE=0. If it doesn't, your system should be recording your command history in ~/.bash_history. You can check to make sure that file exists and has content. If it doesn't, let me know.
ok, thanks so much
And of course, you can use the command "echo $HISTSIZE" to see what your history size limit is configured to be. If it's anything other than 0 (I think 1000 is the default), your system should be populating that ~/.bash_history file. Do let me know how it turns out!
ok, thanks so much