View history commands

By Andrei

You can view the history of commands typed in terminal:

sudo history – to view all commands
sudo history 10 – to view your latest 10 commands

More than that you can filter you commands by a search key:

sudo history | grep cd – and you can see all the commands with change directory.

One Response to “View history commands”

  1. Pietry Says:

    Also a nice feature is the reverse search, just press ctrl – r to try it. ( bash trick )

Leave a Reply