Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I love using history from the command line to keep track of commands but I find its list to be a bit too short for my liking. Is there any way to change this?

share|improve this question

migrated from Jan 7 '11 at 20:01

This question came from our site for professional and enthusiast programmers.

In your ~/.bash_profile file, export the HISTSIZE variable to the desirable number of entries to save:

export HISTSIZE=5000
share|improve this answer

You can increase the size of the history buffer by typing set history=100. If you put this in your ~/.bashrc then it will remain permanent.

share|improve this answer
here is no .bashrc on OS X by default. I suggest .bash_profile instead. – Daniel Beck Jan 7 '11 at 20:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .