Questions tagged [compression]

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.

424 questions
133
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…
103
votes
11 answers

How to zip/unzip files in Powershell?

Is there a one-liner that will zip/unzip files (*.zip) in PowerShell?
BlueGene
  • 2,241
87
votes
2 answers

How can I zip/compress a symlink?

Is it possible and how can I zip a symlink from a linux shell?
DucDigital
  • 1,601
53
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…
Mike L
  • 739
53
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?
Alex
  • 2,437
32
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…
Yan
  • 473
30
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…
28
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…
Noodles
  • 1,416
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.
Alex R
  • 1,093
23
votes
5 answers

Unzip from stdin to stdout - funzip, python

The goal is to read a zip file from stdin and uncompress to stdout. Funzip works and is the solution I am looking for, the zip contains a single file, unfortunately funzip fails when the compressed file size is around 1GB or greater: funzip error:…
chillvibes
  • 331
  • 1
  • 2
  • 4
20
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?
cronfy
  • 711
20
votes
1 answer

How do you create a qcow2 file that is small yet commodious on a Linux server?

I believe that there are qcow2 files that displace a small amount of gigabytes on a server (as verified with a df -h on the physical server) yet allow for lots of space when you log into the virt-manager VM and issue a df -h. How do you create such…
20
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…
19
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…
18
votes
2 answers

How can I list the content of a zip archive, but only the first level?

I have a big zip file and I want to know what it's contain. I know I can run: zipinfo file.zip but the output is too verbose and there are a lot of files in the sub-directories. I want to see a list of the files in the top level. Example If the…
Sapir
  • 183
1
2 3
28 29