removing only most previously executed command from history?
i am new to this form .
my problem is that i want to delete only the most recently executed command from history without manually editing the file .
for eg. i open .bash_history file with vi command & i delete some previously
executed commands manually . now when i save the changes
& logout , then login again .bash_profile contains entry of "vi .bash_profile"
in it , which i don't want.
so please help me.