Remove the. Ds_store and other specified files when you hit a zip package in Mac OS x.

Source: Internet
Author: User
Tags svn

The compress "..." in the Finder is very useful, but there are also times when there are problems, and often packaging will include some. Ds_store file,. Ds_store is a file that stores the basic information of the current directory in the Apple system, including information such as the location of the icon, the way it is displayed. Each directory will have a Destop.ini or thumbs.db similar to the Windows platform.

If you do not want to. Ds_store or __macosx ... Or. svn and so on, you can open terminal and enter the following command:

1 zip -r foo.zip foo -x "*.DS_Store" -x ".svn"

Foo.zip represents the generated file name, Foo represents the path to the destination file or folder, and-r means that the contents of all subdirectories are also packaged in, with the exception of-X followed by the file name.

Remove the. Ds_store and other specified files when you hit a zip package in Mac OS x.

Related Article

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.