I used a combination of solutions shared in this thread to erase the trace in commands history.First, I verified where is saved commands history with:
echo $HISTFILEI edited the history with:
vi <pathToFile>After that, I flush current session history buffer with:
history -r && exitNext time you enter to this session, the last command that you will see on command history is the last that you left on pathToFile.