“grep” stands for
Global Regular Expression Print
grep pattern file
Search for “pattern” in “file”
grep -r pattern directory
Search recursively for “pattern” in “directory”
locate name
Find files and directories by “name”
find /home/john -name ‘prefix*’
Find files in “/home/john” that start with “prefix” (* is a wildcard)
find /home -size +100M
Find files larger than 100MB in “home”
whereis program
Display the location of the binary, source and manual page files of “program”
which program
Display the path of the executable that would run if “program” is executed