We all use the same commands in quick succession very often. Right? For example, in UNIX lab, I can't tell you how irritating it is to keep compiling and executing the same file over and over again.
$gcc file.c
$./a.out
After typing this once, if we type
$!g
$!.
the shell executes the previously said set of command.
What happens is that if we write "!" followed by a letter, the shell searches your history and executes the last command starting with the letter.
This Is How to Get Your Home Ready for 5G Wi-Fi
4 hours ago