optional feature of Bash history filtering that isn't always enabled by default in distributions is cmdhist. This determines whether multi -line commands are stored in the history as a single command (on) or not (off; default). To enable this feature, you would type shopt -s cmdhist To disable this feature, you would type shopt -u cmdhist