How do I make bash history Unlimited?

How do I make bash history Unlimited?
Answer
Setting HISTFILESIZE to a value less than zero causes the history file size to be unlimited (setting it to 0 causes the history file to be truncated to zero size). bash –version to check your bash version. (export PROMPT_COMMAND=’history -a’) can flush commands to bash history immediately.
 

Tìm kiếm

Back
Top