Command Line

Find files on system containing specific text

To search for text inside of files and show a snippet containing the match, use the following command: grep -rnw {PATH} -e {TEXT_TO_SEARCH_FOR} Such as: grep -rnw / -e examplephrase If your search parameter includes spaces or special characters, make sure to enclose...

Search for a file by name

find {PATH} -name {FILENAME} Search current directory for file with exact name: find . -name name.pdf Or by wildcard: find . -name "*.js"