[pappy@chmodx]:$ man history

$ history

Display or manipulate the command history list

DOCUMENTEDShell builtinsUbuntu 24.04 LTS baseline

Synopsis

history [n] or history -c ...

What it does

Examples

Show recent commands
history
Show the last 20 commands
history 20

Important details

These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration. For exact option semantics, the linked authoritative documentation is the source of truth.