LoginSignup
8

More than 5 years have passed since last update.

Mac で自動で作成される「.DS_Store」「._」ファイルを削除する.

Last updated at Posted at 2012-05-03

Shell で好きなディレクトリへ行って,

$ find . -name ".DS_Store" -delete; find . -name "._*" -delete

削除したファイル名の出力が欲しい場合は, -print オプションをつける.
※ -print オプション付けないほうが若干早いです.

$ find . -name ".DS_Store" -print -delete; find . -name "._*" -print -delete

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8