show directories before deleting them find unix 1

show directories before deleting them find unix

find . -iname .DS_Store -delete -print

Here is what the above code is Doing:
1. Find all files in the current directory (.)
2. Ignore case (-iname)
3. Delete all files that match the pattern .DS_Store
4. Print the name of each file that is deleted

Similar Posts