history - linux

Delete line of history

vim $HISTFILE

Then delete line you want.

Then reopen terminal to see change
        

Execute command without storing in history

 export HISTCONTROL=ignorespace
Then run any command with a space in front of it (ie " ls")

OR

If you want to simply unset tracking of commands, run:
unset HISTFILE