Decrease the size of data, typically to preserve space or reduce network bandwidth required while transmitting files. It can be applied to files, folders, disks, etc.
Questions tagged [compression]
416 questions
130
votes
7 answers
Does Windows have a built-in ZIP command for the command line?
Since Windows Explorer (since at least Windows XP) has some basic support for ZIP files, it seems like there should be a command-line equivalent, but I can't seem to find any sign of one.
Does Windows (XP, Vista, 7, 8, 2003, 2008, 2013) ship with a…
![](../../users/profiles/1382.webp)
Electrons_Ahoy
- 1,801
- 3
- 14
- 16
104
votes
11 answers
How to zip/unzip files in Powershell?
Is there a one-liner that will zip/unzip files (*.zip) in PowerShell?
![](../../users/profiles/4113.webp)
BlueGene
- 2,191
- 9
- 29
- 33
75
votes
2 answers
How can I zip/compress a symlink?
Is it possible and how can I zip a symlink from a linux shell?
![](../../users/profiles/26631.webp)
DucDigital
- 1,441
- 3
- 18
- 26
49
votes
12 answers
Unzipping files that are flying in through a pipe
Can I make unzip or any similar programs work on the standard output? The situation is I'm downloading a zip file, which is supposed to be unzipped on the fly.
Related issue: How do I pipe a downloaded file to standard output in bash?
![](../../users/profiles/3320.webp)
Alex
- 2,287
- 5
- 32
- 41
46
votes
5 answers
Is it possible to enable http compression for requests?
I see lots of information about enabling http compression for server responses but what about for incoming requests. Wouldn't it make sense for the browsers to compress large form posts before sending them to the server?
Another example is a REST…
![](../../users/profiles/3940.webp)
Mike L
- 669
- 1
- 6
- 11
30
votes
5 answers
tar: How to create a tar file with arbitrary leading directories w/o 'cd'ing to parent dir
Say I have a directory of files at
/home/user1/dir1
and I want to create a tar with only "dir1" as the leading directory:
/dir1/file1
/dir1/file2
I know I can first cd to the directory
cd /home/user1/
tar czvf dir1.tar.gz dir1
But when writing…
![](../../users/profiles/26699.webp)
Yan
- 453
- 1
- 4
- 6
29
votes
2 answers
Transparent compression filesystem in conjunction with ext4
I am trying to test a project that needs compressed storage with use of the ext4 file system since the application I use relies on ext4 features.
Are there any production/stable solutions out there for transparent compression on ext4?
What I have…
![](../../users/profiles/235918.webp)
user235918
- 309
- 1
- 3
- 7
26
votes
5 answers
How to unzip files bigger than 4GB?
I'm using RHEL 5.6 and unzip-5.52-3.el5. I'm trying to unzip a big file, but I get the error:
unzip -o test.zip -d unzip/
error: Zip file too big (greater than 4294959102 bytes)
Archive: test.zip
warning [test.zip]: 4294967296 extra bytes at…
![](../../users/profiles/53148.webp)
Noodles
- 1,356
- 3
- 18
- 29
24
votes
8 answers
How to check if Apache compression is working?
I just added the following to my Apache config file:
AddOutputFilterByType DEFLATE text/html text/plain text/xml
How do I check if it is actually working? Nothing on the browser tells me if the page contains gzipped content.
![](../../users/profiles/24457.webp)
Alex R
- 972
- 3
- 12
- 26
19
votes
4 answers
rsync --compress-level: which compression levels can be used?
Rsync has command line arguments for compression:
-z, --compress compress file data during the transfer
--compress-level=NUM explicitly set compression level
What does --compress-level mean? Which numbers can be used as level?
![](../../users/profiles/195445.webp)
cronfy
- 671
- 1
- 6
- 14
18
votes
14 answers
Best compression for ZFS send/recv
I'm sending incremental ZFS snapshots over a point-to-point T1 line and we're to a point where a day's worth of snapshots can barely make it over the wire before the next backup starts. Our send/recv command is:
zfs send -i tank/vm@2009-10-10…
![](../../users/profiles/4398.webp)
Sysadminicus
- 586
- 4
- 8
- 19
17
votes
3 answers
How to list content from a tar file without recursion?
I've a tar (gz, bzip) file and want to see its content, but not recursively.
This is: The "first level" in the file.
I already know how to see content:
tar -ztf file.tar.gz
But it's recursive!!
Thanks!
![](../../users/profiles/26422.webp)
santiago.basulto
- 598
- 2
- 8
- 16
16
votes
6 answers
Are there other options to unzip a file in Ubuntu besides "unzip"?
My sysadmin is unreachable right now, and I have a zipped file on the server that I would like to unzip...however, we don't currently have zip and unzip installed, and I don't have root access to install them...
Am I out of options entirely? Are…
![](../../users/profiles/26546.webp)
johnnietheblack
- 461
- 2
- 5
- 11
16
votes
5 answers
For large files compress first then transfer or rsync -z? which would be fastest?
I have a ton of relativity small data files but they take up about 50 GB and I need them transferred to a different machine. I was trying to think of the most efficient way to do this.
Thoughts I had were to gzip the whole thing then rsync it and…
None
15
votes
4 answers
HTTP Compression on IIS 6.0 (Windows Server 2003)
There are many things you have to do/consider when you want to enable HTTP compression on IIS 6.0 (Windows Server 2003).
Can somebody please provide a comprehensive list of the actions you have to take in order to enable HTTP compression properly?
![](../../users/profiles/45.webp)
splattne
- 28,348
- 19
- 97
- 147