While restarting my ubuntu 16.04 OS, my terminal commands history numbers is changed, only the history numbers is changed my history is saving perfectly. History numbers always display numbers between 983 to 1984.

terminal screenshot

how ever before restart i have typed more than 2000 commands. E.g The last command with line number 2093 upon restart will save with line no 1984.

  • What is your question? – rclocher3 Dec 2 '16 at 6:46

Command history is not unlimited. Look for HISTFILESIZE and HISTSIZE in man bash.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.