Sunday, May 28, 2017

To remove a single line from history

If we have already run a command, and want to remove it from history, firstly we will have to use
history
to display the list of commands of history. Then we will have to find the number next to the one we want to delete (e.g. 4321) and run
history -d 4321

No comments: