>_ linuxcommand.dev
Startseite HISTSIZE
Shell

HISTSIZE

Number of commands kept in the in-memory history buffer.

Ubuntu Debian Arch Fedora CentOS SUSE Alpine macOS FreeBSD
Verified: 2026-05-12
Syntax
$echo $HISTSIZE
Examples
$echo $HISTSIZE
$export HISTSIZE=5000
Typical use cases
?
Standard usage
HISTSIZE --help
Note Controls how many entries are kept during the current shell session.
Export