What is HISTSIZE , HISTFILESIZE and how to change it?

Updated -

What is HISTSIZE?

  • HISTSIZE is the number of lines or commands that are stored in memory in a history list while your bash session is ongoing.

What is HISTFILESIZE?

  • HISTFILESIZE The maximum number of lines contained in the history file. When this variable is assigned a value, the history file is truncated, if necessa...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content