[ Thanks to linuxaria for this link.
]
“The history command is very useful when you frequently
work at the terminal and you want to invoke a command given in the
past.But there are several options that are not so common or poorly
understood, in this article we’ll see some of them in bash and zsh.
Basic usage“Show last commands in history.
“Apply to bash and zsh
history”