e>
<table width="95%" align="center">
<tr><td>
Truncate the history file <var>filename</var>, leaving only the last
<var>nlines</var> lines. 
If <var>filename</var> is <code>NULL</code>, then <code>~/.history</code> is truncated. 
Returns 0 on success, or <code>errno</code> on failure. 
</td></tr>
</table>

<div class="node">
<p><hr>
Node:&nbsp;<a name="History%20Expansion">History Expansion</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Managing%20the%20History%20File">Managing the History File