Find and delete all the directories named "test" in linux
I have many directories named "test" and I would like to remove them.
I know how to find them and print them for now.
find . -name test -print
Now how to do I remove the directories?
Please note that I have files in the directory as well and they must be removed as well.
I have many directories named "test" and I would like to remove them.
I know how to find them and print them for now.
find . -name test -print
Now how to do I remove the directories?
Please note that I have files in the directory as well and they must be removed as well.
No comments:
Post a Comment