If you want to disable history all together and don’t want bash shell to remember the commands you’ve typed, set the HISTSIZE to 0 as shown below.
# export HISTSIZE=0 # history # [Note: History did not display anything]
Previous post: Hack 62. Substitute a specific argument for a specific command
Next post: Hack 64. Ignore specific commands from the history using HISTIGNORE
Previous post: Hack 62. Substitute a specific argument for a specific command
Next post: Hack 64. Ignore specific commands from the history using HISTIGNORE