history -d 511-520
#you can edit hisroy file ~/.bash_history
# counting backwards 10 history -d -10--1