Recursively remove files

后端 未结 12 2210
無奈伤痛
無奈伤痛 2020-11-30 16:52

Does anyone have a solution to remove those pesky ._ and .DS_Store files that one gets after moving files from a Mac to A Linux Server?

specify a start directory and

12条回答
  •  温柔的废话
    2020-11-30 17:07

    Example to delete "Thumbs.db" recursively;

    find . -iname "Thumbs.db" -print0 | xargs -0 rm -rf
    

    Validate by:

    find . -iname "Thumbs.db"
    

    This should now, not display any of the entries with "Thumbs.db", inside the current path.

提交回复
热议问题