Questions tagged [compression]

The re-encoding of a file or data into a form that uses fewer bits of information than the original data.

89 questions
115
votes
9 answers

How can I unpack .7z files via MacOS terminal?

Looking to unpack a bunch of files.7z via terminal. Is there a command-line tool built in, available or I shall install an application that comes with a graphical interface?
SuperAtic
  • 1,371
  • 2
  • 9
  • 9
39
votes
4 answers

How do I create a DMG file from a directory?

I'm trying to add a few files into a dmg. How do I create a DMG file from a directory?
Moshe
  • 8,661
  • 23
  • 72
  • 120
25
votes
4 answers

Why are so many Mac downloads a .dmg just that contains a single .pkg?

I've noticed that many downloads are a dmg (disk image) that contains a single pkg file (installation package). Usually the pkg seems to be already compressed since the dmg doesn't reduce the file size much if…
Jim McKeeth
  • 4,485
  • 12
  • 39
  • 61
22
votes
2 answers

APFS - how do I enable transparent compression

How do i enable transparent filesystem compression on any APFS volume? Or check if it is already enabled? I am expecting something similiar to NTFS compressed attribute. According to Wiki it should be supported. Is it per file or volume ? I am using…
Sidias-Korrado
  • 323
  • 2
  • 6
17
votes
4 answers

Creating an automated HFS+ compressed folder

I would like to set up an automated way for archiving files in OS X Lion. By archiving I mean using HFS+ compression feature on a specific folder, and make every file that I move into this folder automatically compressed. I'm thinking of using this…
Boj
  • 432
  • 3
  • 11
17
votes
3 answers

Tell macOS to only use swap and compressed memory when really needed (macOS 10.14 Mojave)

As disabling swap and/or compressing memory is not recommended and also not a stable option after 10.9 Mavericks (despite the vm setting exists), I'm doomed after few days of running my Mac with my memory writing to the far-from-optimal pages of…
dszakal
  • 474
  • 2
  • 9
  • 23
15
votes
2 answers

why does OSX add extra '._' when I tar a directory?

I'd just like to know why if I "tar -czf" a file/directory, osx adds a: ._ for each file? I see these when I untar in linux. Or when I work with the uncompressed project in eclipse as it doesn't like them at all. I use 10.7.5.
Dark Star1
  • 462
  • 5
  • 14
14
votes
4 answers

Tools to compress and encrypt files

I want to compress several files and encrypt them with a password if possible. Are there any build-in tools in Mac OS that provide such functionality? If not, can you recommend me a (freeware) alternative? I'd also be happy with a terminal…
gentmatt
  • 48,122
  • 52
  • 193
  • 270
12
votes
1 answer

Can I turn off swap and/or memory compression on macOS 10.12, Sierra?

Is there a way with macOS 10.12, Sierra, to safely turn off compressed memory? And is there a way to turn off safely swap? This was possible on macOS 10.9 and macOS 10.10. Although it sometimes crashed on macOS 10.10. On macOS 10.11, disabling…
dszakal
  • 474
  • 2
  • 9
  • 23
8
votes
5 answers

macOS equivalent to the Windows "Compress file/folder content on disk to save space" option

Windows has a useful feature where files can be transparently compressed/decompressed on the fly. This is activated by right-clicking on a File, directory or Disk, selecting Properties and then clicking on the Advanced... button to check the box…
user1258361
  • 740
  • 2
  • 9
  • 20
8
votes
1 answer

Large zip files created in OS X cannot be opened in Windows

When I compress a large directory in OS X, like 5-6 GB the resulting archive cannot be browsed in Windows / Total Commander. It hangs the app and stays at 100% cpu usage, like its trying to extract it or something. Does anybody know whats causing…
ktie
  • 81
  • 1
  • 1
  • 2
8
votes
1 answer

Can SquashFS filesystems work with macOS El Capitan?

I am converting some .tar.gz to SquashFS (using squashfs from homebrew) using xz compression because I want to be able to mount the archives and read the content without extrating and also because the compression is about 10% better in my case. Now…
Rainer
  • 1,666
  • 5
  • 26
  • 35
8
votes
1 answer

How do I transparently compress a directory?

I'd like to enable HFS+ compression for a directory, applying it to both the existing files in that directory and newly copied files. I expect to be able to read and write the contents of that directory normally. Does HFS+ treat non-compressible…
Kartick Vaddadi
  • 1,705
  • 5
  • 26
  • 44
8
votes
3 answers

How can I make a PDF document smaller?

Here's my problem, I have a PDF document 583KB, and I want to make it under 500KB so I can upload it. What should I do?
Ave Maleficum
  • 1,186
  • 12
  • 26
  • 44
8
votes
2 answers

Options on a Mac for a writable, compressed file system?

I have a SSD drive on my MacBook Pro and I'm constantly running on out of disk space because I need to install and run multiple virtual machines (Linux, Windows etc) on my Mac. Is there a way to mount a writable disk image that is also compressed?…
haseebq
  • 131
  • 1
  • 6
1
2 3 4 5 6