There are many ways to search for a word within the Ubuntu terminal, but two of the most common are grep and locate. Locate searches for files and directories in your computer's file system, while grep searches for files in your computer's data directory.