I'd like to clear recent inputs in terminal not cls or clear but when you press up or down. How do I clear this list so that when I rename sudo to nodood or something you cannot press up to view the new sudo perhaps my script will read input.
EDIT: Note pressing Ctrl + R in terminal will let you search history like
history | grep searchQueryString
Another useful tip is
sudo !!
which re-executes last command with sudo prefixed