search previous commands in linux code example Example: find old command terminal history | grep "foo*"