Run the following linux command to clean both history file and all currently history file unsaved commands
$ history -c