About 451,000 results
Open links in new tab
  1. Find Exec Command in Linux: 9 Useful Examples

    Jul 18, 2022 · Find works on searching files based on a number of criteria. The exec command gives you the ability to work on those results. Here are some examples of find exec command combination. …

  2. Using the find -exec Command Option | Baeldung on Linux

    May 11, 2024 · In this article, we learned how to use the -exec argument when running the find command in Linux. We explained the separate parts of this argument, and how we can use them to …

  3. shell - Understanding the -exec option of `find` - Unix & Linux Stack ...

    Sep 1, 2017 · Each -exec also acts like a "test" on the pathnames found by find, just like -type and -name does. If the command returns a zero exit status (signifying "success"), the next part of the find …

  4. Find Command in Linux with Examples - GeeksforGeeks

    Nov 4, 2025 · The find linux command starts the search from the current directory, including all its subdirectories. For each file (-type f) found in the search, the -exec option executes the grep command.

  5. Find -exec Command in Linux with Examples - LinuxOPsys

    Jun 8, 2023 · This will let us execute custom actions on listed files by find, including deleting, copying, renaming, and much more. This mighty feature allows us to seamlessly invoke Linux commands like …

  6. find (1) — Linux manual page - man7.org

    Actions that can cause symbolic links to become broken while find is executing (for example -delete) can give rise to confusing behaviour. Using -L causes the -lname and -ilname predicates always to return …

  7. How to Use the find Command in Linux - How-To Geek

    Sep 11, 2023 · By using the find command with xargs, you can pass the results of the search to other commands for further processing. The -exec option in the find command allows you to call external …

  8. 10 Advanced Find Exec examples in Linux - howtouselinux

    Oct 9, 2025 · And with the exec option, you can perform actions such as deleting or moving those files with ease. By learning how to use the find exec command, you can save time and effort in managing …

  9. How to use find -exec Command Option in Linux - LinuxCapable

    Nov 17, 2025 · Master the find -exec command in Linux with practical examples covering batch operations, automation, and advanced use cases.

  10. Mastering `find` and `exec` in Linux — linuxvox.com

    Nov 14, 2025 · In the vast landscape of Linux command-line utilities, the find command stands out as a powerful tool for searching files and directories. When combined with the exec option, it becomes …