use grep to globally search a file on linux code example Example: linux search for line in file grep -R "keyword" /directory/