Bash – How to Recover History of Past Commands

bashcommand history

Always when I turn on my Fedora 18, my history command disappear.

How can I recovery all my history since I installed my OS?

In my ./bash_history show olny the command of the day when I turn off my PC disappear all my past command in ./bash_history.

Best Answer

Unfortunately you cannot recover it, sorry.

For unlimited Bash history consult this link, and if you stall somewhere, edit your question in detail to help you out.

In short, if they do not already exist, you should add two lines to your .bashrc:

HISTSIZE=
HISTFILESIZE=

If your username is vitor, under normal configuration the full path of .bashrc will be /home/vitor/.bashrc.

Related Question