Linux quick tip: List of recent commands

Hello everyone,

 

Here’s a quick tip for the newcomers on the wonders of the Linux shell.

Weather you know you’ve typed a command and forgot what or o simple need a list of all that was executed (very useful to back trace your steps!!), there’s a command that helps you.

The command is “history” and it shows a list of recent commands.

You can also combine it with grep or awk to search for a specific command.

 

For example:

history | grep fdis* where it will search for all commands started with fdis.

 

Enjoy.

Leave a Reply

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