Commands follows
511 clear
512 history
513 history -d 505
514 history
515 history -d 507 510 513
516 history
517 history -d 509
518 hist
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 $HISTFILE
I edited the history with:
vi
After that, I flush current session history buffer with:
history -r && exit
Next time you enter to this session, the last command that you will see on command history is the last that you left on pathToFile.