Mac system removed. Ds_store file

Source: Internet
Author: User
Find a class of files under a directory
find . -name ".DS_Store" -type f -print# find: 主命令  # . : 当前目录下(可变)  # -name: 通过名查找  # ".DS_Store": 后缀  # -type f: 一般正规文件  # -print: 查询结果打印

Eg: Find all the files in the current directory .html , and print it should be used
find . -name ".html" -type f -print

find . -name ".DS_Store" -type f -print -exec command {} \;# -exec: 命令扩展,查询结束后要执行 command 命令# {}: 查询结果放到 {} 中# \;: 扩展命令结束符,表示 到 ; 结束

Eg: .html when found, delete all query results, should use:
find . -name ".DS_Store" -type f -print -exec rm -rf {} \;

Do not let Mac OS build. Ds_store file
defaults write com.apple.desktopservices DSDontWriteNetworkStores true

Mac system removed. Ds_store file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.