find find linux code example
Example 1: find in linux
$ find [where to start searching from]
[expression determines what to find] [-options] [what to find]
$ find ./GFG -name sample.txt
Example 2: find linux
find . -name "pattern" -print
$ find [where to start searching from]
[expression determines what to find] [-options] [what to find]
$ find ./GFG -name sample.txt
find . -name "pattern" -print