Recursively remove files

后端 未结 12 2226
無奈伤痛
無奈伤痛 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:23

    It is better to see what is removing by adding -print to this answer

    find /var/www/html \( -name '.DS_Store' -or -name '._*' \) -delete -print
    

提交回复
热议问题