Linux Find Command
Linux Find Command
✔ -name pattern: It checks that the file name is the same as the given shell-glob pattern or not.
✔ -type type: It checks that the file is a provided type.
✔ -print: It always gives the true value. It prints the current file name and a newline to stdout.
✔ -print0: It always gives the true value. It prints the current file name and a null character to
stdout. Not needed by POSIX.
✔ -exec program [argument ...];: It always gives the true value. It executes a program with the
fixed given arguments and the current file path.
✔ -exec program [argument ...] { } +: It always gives the true value. It executes a program with
the fixed given arguments and as several paths as possible. For almost every implementation,
other {} occurrences mean extra copies of the given name (aspect not needed by POSIX).
✔ -ok program [argument ...];: It is the same as -exec, but will return false or true if the program
gives 0.
./tecmint.txt
./tecmint.txt
./Tecmint.txt
/Tecmint
./tecmint.php
./tecmint.php
./login.php
./index.php
[ You might also like: How to Find Files With SUID and SGID Permissions in Linux ]
OR