Skip to content
  • 0 Votes
    9 Posts
    4k Views
    zaasmiZ
    @zaasmi said in how to show hidden files in mac?: @rana-rana said in how to show hidden files in mac?: in mac while compressing files .ds_store When compressing files on a Mac, .DS_Store files are automatically included, but can be excluded. To exclude them, use the -x flag with the zip command in Terminal, specifying .DS_Store as the file to exclude. Alternatively, third-party tools like BetterZip or CleanArchiver can be used to create archives without .DS_Store files. Here’s a more detailed explanation: Understanding .DS_Store Files: .DS_Store files are created by macOS Finder to store custom attributes of a folder, such as icon positions, background images, and window sizes, according to Super User. These files are specific to macOS and can cause issues when sharing archives with users on other operating systems. Methods for Excluding .DS_Store Files: Using the zip command in Terminal: To exclude .DS_Store files, use the -x flag with the zip command. For example: zip -r archive_name.zip directory_to_zip -x "*.DS_Store". This command will create a zip archive of the specified directory, excluding any .DS_Store files. 2. Using third-party tools: Several third-party tools, like BetterZip and CleanArchiver, can create archives while automatically excluding .DS_Store files. 3. Automator: Automator can be used to create a service that compresses folders and automatically removes .DS_Store files. 4. Setting Archive Utility settings: You can configure Archive Utility to always output zip files to a specific folder with folder actions enabled to automatically remove .DS_Store files. By using these methods, you can ensure that your compressed archives do not include .DS_Store files, making them more compatible with other operating systems and preventing potential issues. zip -d filename.zip __MACOSX .DS_Store
How to Build a $1,000/Month PAK VS BAN Live Live Cricket Streaming
File Sharing

1

Online

3.0k

Users

2.8k

Topics

8.2k

Posts
| |