How to zip and unzip files in Mac OS X



Create a Zip of files, folder from standard finder

  • Right-click on a file, folder, or files you want to zip 
  • Select “Compress Items”
  • Find the newly created .zip archive in the same directory
     


Create a Zip of files, folder from the Command Line

      zip file : zip archive.zip file.txt
         zip folder: zip archive.zip /path/to/directory/
         unzip file : unzip archive.zip

         zip file with password: zip -e [archive] [file]
                                         e.g zip -er archive.zip /path/to/directory/
         zip folder with password: zip -er [archive] [folder]
                                         e.g zip -er archive.zip /path/to/directory/       
         unzip archive with password:  unzip archive.zip
     


No comments :

Post a Comment