bashhistory
Bashhistory is the command history feature of the Bash shell. It records commands entered during interactive sessions, enabling users to recall, edit, and reuse previous commands. History is maintained in memory for a session and can be saved to disk for later use.
Location and size: By default, history is written to ~/.bash_history. The number of commands kept in memory
Configuration: The behavior is controlled by environment variables such as HISTCONTROL (for ignoring duplicates and lines
Security and privacy: Because the history may include sensitive data, access should be restricted (chmod 600