This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / System Interface / Mathematica Sessions /

$HistoryLength

FilledSmallSquare $HistoryLength specifies the number of previous lines of input and output to keep in a Mathematica session.

FilledSmallSquare The default setting for $HistoryLength is Infinity.

FilledSmallSquare Values of In[n] and Out[n] corresponding to lines before those kept are explicitly cleared.

FilledSmallSquare Using smaller values of $HistoryLength can save substantial amounts of memory in a Mathematica session.

FilledSmallSquare See Section 2.14.1.

FilledSmallSquare See also: $Line.

FilledSmallSquare New in Version 3.