Categories
Linux

Linux search

# looking for an specific file name
find / -name foo

# looking for a string inside a file, excluding certain files:

grep –exclude=*.log -rnw ‘.’ -e “the_string_you_are_searching_here”

Leave a Reply

Your email address will not be published. Required fields are marked *