Delete .DS_Store Recursively
In the Apple macOS operating system, .DS_Store
is a file that stores custom attributes of its containing folder
, such as the position of icons or the choice of a background image. However this kind of file only useable within macOS operating system. Unfortunately when We copying a folder using flash drive all .DS_Store
files included there. So if We want to remove those, We can make use of below easy script:
# 1. Go to your directory
$ cd /to/your/directory
# 2. Find all .DS_Store files recursively and remove
$ find . -name '.DS_Store' -type f -delete
Caption Photo by Lance Grandahl on Unsplash
Credits: https://jonbellah.com/articles/recursively-remove-ds-store