1. Freebies
  2. Tutorials
  3. Zip Files on Mac without Invisible Files
Zip Files on Mac Without Invisible Files

Zip Files on Mac Without Invisible Files

Mac makes zipping files easy, But properly zipping files without invisible files takes a little know-how.

When moving files across platforms, cleanliness is key. The invisible files that Mac creates to handle basic functions (like Finder) make your daily usage easier, but like anything good - There's a catch. The largest issue is the tiny little files that Mac includes. I ran into a case where I needed to create a perfectly clean folder zip file to sell online and it took a little work, but I found the perfect approach.

Here's How you Zip your Files...

Open your Terminal application (don't worry - I promise this is an easy one). Place the file that you need to zip into an easy to reach location. In this example, the folder I want to zip is directly under my Mac username (So... Harddrive > Users > Myusername > Folder I want to Zip). Then simply enter the code below and all you need to adjust is YOURFILENAME and YOURZIPNAME for whatever your desired input and output will be.


Ok, That Worked. But why?

Most people view Terminal... or anything prompt based as an odd kind of magic, but it doesn't have to be... Step by step, this is what's happening. You're telling Terminal that you want to make a Zip. Then you're stating that it's recursive - Meaning you want everything in that folder to be included. You're giving the name that you want the resulted file to have, followed immediately by the filename that you currently have (if it was in a lower location, you'd simply backslash your way to the folder... if it were on your desktop you'd use Desktop/YOURFILENAME). The "-x" says, we want to remove a few things before you initiate the Zip. Then finally you state what you want to get rid of - the ".DS_Store" files in this case.

Not too tough, right?

Terminal can be intimidating - It certainly was (and in some respects still is) to me. Hopefully this can get you off to a running start on using Mac's core functions and a bare minimum - You should have that invisible files problem solved! If you have a better method or another comment, please feel free to leave it below. As always - if you find this post at all helpful, please share it!

Related Articles
  • 10 Responsive Frameworks You Need
    Bootstrap vs UIKit vs Foundation - We take a look inside all the popular frameworks on the market and find the 10 Responsive Frameworks You Need.
    10 Responsive Frameworks You Need
  • How to use MAMP: Setting up MAMP
    Utilizing a local development environment is crucial for web developers, but it's not well documented. This guide to setting up MAMP will show you how to create your own PHP development server & how to use MAMP efficiently once you're all setup.
    How to use MAMP: Setting up MAMP
  • Show Hidden Files on Your Mac
    Find yourself needing access to hidden files on your Mac?
    Show Hidden Files on Your Mac
  • The Source Code Resources for Web Pros
    We've compiled the source code resources for web development's top web professionals. All house fantastic snippets of various languages that make it easy to view, sort, and download website source code.
    The Source Code Resources for Web Pros
  • Wordpress Htaccess - An Intro Wordpress Security Tutorial
    WordPress Htaccess is an important file. With it you can boost your WordPress security, seo, page load speeds and minimize WordPress exploits without a ton of effort. Take a couple minutes and learn a few WordPress htaccess tricks of the trade.
    Wordpress Htaccess - An Intro Wordpress Security Tutorial
Written By:
Matthew Haeck

Greetings, I'm the lead designer and resident full stack web developer at Haeck Design. A majority of my time is spent creating beautiful logos, websites, print design, & staying up to date on all the tricks of the web development trade. (Matthew Haeck Bio Page)

Haeck Design - Stamp Logo