Zip mac os fielder

Сжатие и распаковка файловых архивов с помощью Терминала на Mac

При передаче папок и нескольких файлов между компьютерами может быть полезно сжать их в один архив. Это экономит место, позволяет передавать всего один объект вместо множества объектов и упрощает возобновление передачи, если задача будет по какой-либо причине приостановлена.

В Терминале можно использовать команду GNU tar для сжатия и распаковки файловых архивов. Стандартным расширением файла для сжатого архива tar является .tgz, но иногда имена файлов имеют расширение .tar.gz. Если архив не сжат, его имя оканчивается просто на .tar.

Совет. Создавать и распаковывать архивы легче в Finder (команду tar в Терминале рекомендуется использовать только в том случае, если нужно создать именно архив tar). См. Сжатие и распаковка файлов и папок.

Создание сжатого tar-архива

В приложении «Терминал» на Mac введите команду tar и нажмите клавишу Return.

Для простого сжатия папки с именем, например LotsOfFiles, можно ввести:

Флаг z указывает на то, что архив сжимается и объединяется в один файл. Этот параметр обычно используется, но он не обязателен.

Если папка имеет большой размер, можно добавить флаг v и следить за процессом сжатия:

Распаковка архива tar

Чтобы распаковать tar-архив на Mac, выполните одно из следующих действий.

В приложении «Терминал» на Mac введите команду tar с флагом x , затем нажмите клавишу Return. Для просмотра сообщений о ходе сжатия также используйте флаг v . Например:

В Finder на Mac дважды нажмите файл tar.

Источник

7-Zip для Mac OS

7-Zip — это свободное программное обеспечение с открытым исходным кодом. Такой тип лицензии разрешает сторонним разработчикам использовать исходники программы при создании своих проектов. Благодаря этому 7-Zip появился и на Mac OS — в виде архиватора под названием Keka, который разработан на основе его модуля, работающего из командной строки — p7zip.

Установка у Keka стандартна как для приложений, распространяемых в виде файлов с расширением DMG. После запуска «инсталлятора» откроется его содержимое — файл keka.app, который нужно перенести в папку Applications. После этого архиватор будет готов к запуску и работе.

В отличии от Windows версии 7-Zip, на Mac создание архивов и их распаковка происходит преимущественно без обращения к интерфейсу программы. Архивы создаются в автоматическом режиме при перетаскивании файлов на значок Keka, закрепленный в Doc. Разархивация происходит таким же способом.

Возможности 7-Zip (Keka) для Mac OS

  • выбор метода сжатия при создании архивов;
  • автоматическое удаление исходных файлов после архивации (опция);
  • шифрование архивируемых файлов паролем по алгоритму AES-256. Шифрование имен файлов, чтобы нельзя было догадаться о содержимом архива;
  • автоматическое исключение путей операционной системы, если такие случайно попадутся в папке, выбранной для архивации;
  • разбиение архивов на части заданного размера.

Поддерживаемые форматы

сжатие: 7Z, ZIP, TAR, GZIP, BZIP2, XZ, LZIP, DMG и ISO;

распаковка: те же, что и выше, плюс ZIPX, RAR, LZMA, EXE (исполняемые файлы Windows открываются как папки), CAB, WIM, PAX, JAR, WAR, IPA, APK, APPX, XPI, CPGZ и CPIO.

Преимущества

  1. Поддерживается назначение параметров архивации по умолчанию для каждого формата по отдельности. Можно задать стандартный пароль или изменить силу сжатия файлов;
  2. Русский язык интерфейса;
  3. Поддержка 64-х битной версии ОС (Catalina, etc…).
Читайте также:  Как запустить службу линукс

Если ищете где скачать 7-Zip для Mac OS X, скачайте Keka — бесплатный архиватор, основанный на том же исходном коде. Программа доступна для загрузки по прямой ссылке в виде DMG файла. Если хотите поблагодарить разработчиков, установите архиватор из AppStore — там он распространяется за символическую плату. Обе ссылки на загрузку ниже.

Источник

How to Zip and Unzip Files and Folders on a Mac

File compression is included in macOS

What to Know

  • Zip a single file or folder: Control-click or right-click it and select Compress.
  • Zip multiple files or folders: Shift-click to select them. Control-click or right-click selected files and choose Compress.
  • Unzip an archive: Double-click the archive.

This article explains how to zip and unzip files and folders on a Mac using the Archive Utility built into macOS Big Sur (11.0) through Mac OS X 10.8.

Apple hides the Archive Utility because it’s a core service of the operating system. While this utility is tucked away, Apple makes zipping and unzipping files and folders extremely easy by selecting them in the Finder.

How to Make a Zip File on Mac: Zip a Single File or Folder

Compress and decompress a single file or folder using Finder to access the Archive Utility built into Macs.

Open Finder and navigate to the file or folder you want to compress.

Control-click or right-click the item and select Compress item name.

Look for the compressed version of the file. It has the same name as the original file with a .zip extension.

The Archive Utility zips the selected file and leaves the original file or folder intact. The compressed version is in the same folder as the original file.

Zip Multiple Files and Folders

Compressing multiple files and folders works about the same as compressing a single item. The main difference is the name of the zip file.

Usually, you’ll use the Archive Utility without launching it. However, if you have a large number of files to compress or decompress, you can launch the utility and drag and drop files and folders on it. The Archive Utility is located at System > Library > CoreServices > Applications.

Open the folder that contains the files or folders you want to compress.

Select the items you want to include in the zip file. Shift-click to select a range of files or command-click to select nonadjacent items.

Right-click or control-click any one of the items and select Compress. This time, the word Compress comes with the number of items you selected, such as Compress 5 Items.

Find compressed items in a file called Archive.zip, which is in the same folder as the originals.

If you already have an Archive.zip, a number comes after the new archive’s name. For example, Archive 2.zip, Archive 3.zip, and so on.

How to Unzip Files

To unzip a file or folder, double-click the zip file. The file or folder decompresses in the same folder as the compressed file.

If the zip file contains one file, the new decompressed item has the same name as the original. If a file with the same name exists, the decompressed file has a number appended to its name.

This same naming process applies when a zip file contains multiple items. If the folder contains an Archive, the new folder is called Archive 2.

Third-Party Apps for Zipping and Unzipping Mac Files

The built-in compression system that can zip and unzip files in macOS and OS X is relatively basic, which is why many third-party apps are also available. A quick look at the Mac App Store reveals more than 50 apps for zipping and unzipping files.

If you want more file compression features than Apple offers in its Archive Utility, these third-party apps might help.

Источник

How to Open Zip Files on Mac OS

Zip files are archives that function as a single compressed package of a either multiple files, a folder, or a single item. Zip files are frequently encountered when downloading stuff from the web or elsewhere to a Mac, and while the Zip format used to be widely limited to the Windows world, .zip archives are often created and used on Mac OS now too.

Читайте также:  Canon mf4350d сканер для windows

If you get a zip file you may be wondering how you can open the archive to view what it is and extract the internal components of the zip archive. Wonder no more, it turns out that opening and unzipping files on a Mac is very easy thanks to the built-in Archive Utility tool.

Remember: a zip file (with a .zip extension) is simply a container holding another file or files. You don’t so much open it as you extract it to reveal the contents of the zip archive. For example, a single zip file may contain a handful of documents of various file types, or an entire folder of JPG files, or an application, or any such similar data. The zip file is simply the compressed data presented as a single archive.

How to Open Zip Files on a Mac

Extracting a zip file on a Mac is super easy:

  1. Locate the Zip archive file in the Finder of the Mac
  2. Double-click the .zip archive file to begin extracting the zip archive *

When finished, the unzipped contents will appear in the same folder as the original .zip archive

That’s it. In the example above, a zip file named ‘Archive.zip’ was extracted to create a folder called ‘Archive’ which contains the contents of the origin zip file.

The built in Archive Utility tool in Mac OS will open the zip archive and extract the file(s), typically they are placed within a folder of the same name of the zip archive, minus the .zip file extension.

You can also extract zip files by right-clicking (or Control+clicking) on a .zip archive and choosing to “Open”, or if you have third party unzip utilities installed (more on that in a moment), you can choose “Open With” and select another archive tool.

The Mac also includes an ultra simple ability to make a zip file or even to make a password protected zip file.

* If the zip archive is password protected, the proper password must be entered before the zip file will be extracted.

How to Open Zip Archives in Mac OS with The Unarchiver

Another option is to use the popular third party archive extraction tool called The Unarchiver to open .zip archives on the Mac. To do this, you will need to download and install The Unarchiver first.

  1. Get The Unarchiver from the Mac App Store
  2. Launch The Unarchiver and associate it with archive files
  3. Double-click any zip archive to open it with and decompress with The Unarchiver

Once The Unarchiver is installed and launched, it will want to associate with all known archive types on the Mac. This enables the third party tool to open zip archives and other items in Mac OS that the default Archive Utility may not support, which is another benefit. The Unarchiver can open zip archives as well as open RAR files on a Mac, zip CPGZ files, bz2 bzip, .7z files, .sit, gzip gz, tar, and many other file archive formats that you may encounter when downloading data from the internet or in emails. That vast support for extracting a wide variety of file types is one of the many reasons why The Unarchiver is a great third party app to add to a Mac.

Whether you use the default Archive Utility tool that comes with Mac OS to open zip files or go for the third party solution like The Unarchiver is entirely up to you, both will open a zip file with a simple double-click option.

Extract Zip Files with Terminal

The ‘unzip’ command is available in the Terminal to unzip archived zip files as well. The syntax is simple, just point the command at a zip archive to extract it to the present working directory.

You can also make a zip file via command line if desired, using the ‘zip’ command and pointing at a file or path to a folder as discussed here.

Can you view the contents of a zip file without extracting the archive?

You may be wondering if it’s possible to view the contents of a compressed zip archive, without bothering to extract the actual archive. In fact, you can easily do this using multiple methods, some of which are built directly into Mac OS via the command line. You can read how to view the contents of zip archives without extracting them here if this interests you.

How do you make a zip file on the Mac anyway?

You can read a detailed tutorial on how to make zip files in Mac OS here if interested. The short version is that you can select a file or group of files, right-click, and choose “Compress” to make a quick zip archive of those selected items. It’s very easy.

Have any other questions about zip files? Let us know in the comments!

Источник

How to Zip Files in Mac OS X

Ever wondered how to make a zip file in Mac OS X? We recently demonstrated how to password protect zip archives, but in the comments a reader asked a more simple yet completely valid question: “what about just making a standard zip file?

Well, making a zip archive on a Mac is easy, and with the compression tools built directly into Mac OS X there is no need to download additional software or add-ons to quickly create zips and compress either a single file, a group of files, or an entire folder. If you’re unfamiliar with creating zips on the Mac, here is exactly how to do it, and quickly.

How to Make a Zip Archive in Mac OS X

You can use this to create zip files of files, folders, or both:

  1. Locate the items to zip in the Mac Finder (file system)
  2. Right-click on a file, folder, or files you want to zip
  3. Select “Compress Items”
  4. Find the newly created .zip archive in the same directory

If a single file is being zipped, the zip archive will maintain the standard file name but append the .zip extension.

If more than one file is being zipped, the archive will be named “Archive.zip”, and if multiple archives are created, they will be named successively “Archive 2.zip” and so on.

This works in all versions of Mac OS X, and you can access the compress item option from a right-click with a mouse, control-click with keyboard, or two-finger click on a trackpad from the Mac.

Extracting Zip Archives

Opening zip files is even easier, all you need to do is just double-click on the archive and it will expand automatically with Archive Utility in the same folder the archive is stored in.

For example, if you’re extracting an archive named “ZippedSample.zip” in the

/Downloads/ directory, the resulting extracted folder would be named “ZippedSample” within that same

How to Create a Zip from the Command Line on Mac

Not interested in using the standard Finder and file system approach? Zip archives can also be created from the command line by using the terminal command ‘zip’ with the following syntax:

zip archive.zip file.txt

Another simple way to create an archive from the command line is to use the Terminal’s drag & drop support, type out ‘zip’ as usual but then drop in the file(s) to compress into the Terminal window.

Unzipping from the command line is also very simple, with the easy ‘unzip’ command:

You can specify paths and other details if interested, but if all you’re looking to do is extract a file there isn’t much more to do than the simple unzip command.

While it’s good to know the command line alternatives, most users are best served using the friendlier Mac Finder based approaches, either with zipping from the right-click method described above, or unzipping by just opening the file directly.

Источник

Читайте также:  Windows 10 плохо работает bluetooth
Оцените статью