search terminal history for command code example Example: find old command terminal history | grep "foo*"