How to avoid command being saved to shell history
Firstly, you need to set the Bash shell environment variable to tell the shell to ignore the history if the command is starting with a particular character, e.g. a space in our case below.
# export HISTIGNORE="&:[ ]*"
Then, type the command start with a space
And verify using the history command