Home > other >  Linux find command explanation
Linux find command explanation

Time:03-25

Can someone explain me what does this command do and if I want to try the same thing using git, how should I modify this command?

find . -name CVS -print -exec rm -fr {} \;

CodePudding user response:

This command looks in your current working directory for any directories or files named "CVS" and prints the full path. Then executes a forced recursive removal for each result returned by the find command.

Since there is no filetype present in the name, this command will remove any directory, within your current working directory, named CVS, including all subdirectories and files housed within.

  • Related