I recently saw an article on the internet. Using that by typing the first letter and pressing ↑ would show me the command starting with that letter.
For example let this be my command history:
sudo -s ls nautilus
Now if I type s and press ↑ would show me
How can I acheive this?