find#
General Usage#
Common Flags#
-name: Search by filename pattern (eg. -name '*.log'). Single quotes are recommended to prevent the shell from expanding wildcards prematurely.-type: Filter by file typef: filed: directoryl: symbolic links: socketp: named pipe (FIFO)b: block devicec: character device
-print: Display results to standard output (default).-print0: Separate results with a null character (\0). Useful for filenames with spaces.-exec: Execute a command on the search results.\; (Individual Execution): Runs the command once for each result. The semicolon must be escaped (\;) because it is a shell reserved character.+ (Batch Execution): Collects results and runs the command once with multiple arguments (similar to xargs). Better for performance.