How many commands can you store in the history command in Linux?

Answer:

bash by default is configured to store the last 500 commands. You can configure it to store as many as you want, limited only by practicality and size, to whatever you want by setting the environment variable HISTFILESIZE to a different number.

export HISTFILESIZE=2000

Note: There are comments associated with this question. See the discussion page to add to the conversation.
First answer by Idisjunction. Last edit by Idisjunction. Contributor trust: 805 [recommend contributor recommended]. Question popularity: 2 [recommend question].