All the commands in unix or linux are stored in history. The history command prints the commands on the terminal. Grep for the command from the history as shown below:

Code:
history | grep command_name