问题描述:

This question already has an answer here:

  • Unable to understand the syntax of the command find

    4 answers

网友答案:

when searching man find google says: http://unixhelp.ed.ac.uk/CGI/man-cgi?find

If you again search for {} there you will see the explanation. You could also issue man find in your console.

网友答案:

The string '{}' is replaced by the current file name being processed everywhere it occurs in the arguments to the command, not just in arguments where it is alone, as in some versions of find.

网友答案:

{} means the found files or directories through find command. \; needed when use -exec option with find which denotes the command termination.

find . -name "*.pyc" -exec rm -rf {} \;

Find the files or directories where their names ended with .pyc only inside the current directory and perform the remove operation on the found files or directories.

网友答案:

It represents the found filename.

相关阅读:
Top