Quote:
Originally Posted by nabendu
I am using history -c. It has deketed all command but
I want to delete only last 10 commands from terminal. Please help!!!
|
The others have answered your question, so I will not repeat. I have a tip though.
You can make history ignore commands you typed by preceding a space before the command.
Edit /etc/profile and add an ignorespace to the HISTCONTROL line. For example
HISTCONTROL=ignoredups:erasedups:ignorespace