Clear shell history
Different shells provides similar, yet not the same methods to clear history. This feature is extremely useful if either by accidence or by command requirements, we typed secrets / passwords or other confidential data.
bash
history -c
# Sometimes required
rm ~/.bash_history
zsh
history -p
# Sometimes required
rm ~/.zsh_history