That’s the low down, the more common compression packages available will typically be covered in one of the above. You can also use a number of different formats for creating a. To Eject hdiutil eject /Volumes/archive_name/ To create hdiutil create -format UDZO -srcfolder folder_to_compress archive_name.dmg This one is macOSnative only – for a GUI interface use /Applications/Utilities/Disk Utility – for command line use: To extract gunzip archivename.gz DMG – macOS Only To compress tar -jcvf archive_2 folder_to_compress To extract tar -zxvf archive_ TAR.BZ2 – Cross PlatformĪ variation on TAR GZ but with better compression than both tar.gz and zip. To compress tar -zcvf archive_ folder_to_compress Second up is TAR, an old favorite on Unix/Linux – you add the GZ for the compression – compresses tighter than zip ds store files, use the “-X” option in the command so: zip -r -X archive_name.zip folder_to_compress TAR.GZ – Cross Platform If you want to make a zip without those invisible Mac resource files such as “_MACOSX” or “._Filename” and. To compress zip -r archive_name.zip folder_to_compress ZIP – Cross Platformįirst up is ZIP one of the most commonly used compression techniques used across all platforms Here are some built-in compression applications you can use including zip, tar, gz, bz2, gz and dmg. If you are unable to expand the zip file by simply double-clicking, then use Terminal and try to unzip them. A compressed file which contains files and folders is generally referred to as an archive. Something like tar -x /somefile.zip will extract the somefile. The default command line application interface in macOS is the Terminal and is stored in /Applications/Utilities.įile and folder compression saves on file size and ensures the contents are captured and delivered or stored as one monolithic file. 3 Answers Sorted by: 3 You can usually use tar or zip for file compression. Terminal will then spit out a few lines of code indicating that your zip file has been unzipped and the files within the folder should now be available on your desktop.Since macOS is based on Unix there are a number of ways to compress files and folders within the filing system using Unix based application code, below are a few options using the Terminal or command line interface (cli). Joshuas-MacBook-Pro-2:desktop joshuaerickson$ unzip test.zip This means to Change Directory to Desktop. Joshuas-MacBook-Pro-2:~ joshuaerickson$ cd desktop Last login: Wed Jan 28 13:47:29 on console When you have terminal open, type in the following commands. You can also search for Terminal in your Mac's Launchpad. You can search for Terminal in your Mac by clicking on the magnifying glass icon in the upper right corner or locate it in the Utilities folder, which is in the Applications folder. zip file to the desktop, it will make it easier to find your. Windows/PC users: Try WinRAR should a workaround be needed to unzip a folder! Step 1 - Move. You can also access it by searching for Terminal using OSX's search function, located in the top right part of the screen within the Finder or by using the search function in the upper center of the screen from your launchpad. Terminal is located in the Utilities folder, within the Applications folder on your Mac. In contrast to the mostly graphical nature of the user experience of OS X, terminal provides a command lined interface that connects to the operating system. Terminal is an application that provides provides text-based access to the operating system.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |