Command, HowTo

Find a ‘word’ in history of commands that you ran on ssh

If you want to search in history to search for a specific command that you ran while ago, use grep as it’s used in command below.

root# history | grep *keyword*

Replace *keyword* with the word you want to search, just like i want to search for *restart*.

root# history | grep restart

Leave a Reply

Your email address will not be published. Required fields are marked *