clear history centos

C++
history -cJust check the enumeration of your commands history and then delete them:
history -d 7 #Deletes seventh command in your history list
Source

Also in C++: