Questions tagged [compression]

Compression is the process in which a file or folder's size is reduced by using an algorithm to encode the same information using fewer bits.

Filter by
Sorted by
Tagged with
1150 votes
8 answers
3.5m views

What command do I need to unzip/extract a .tar.gz file?

I received a huge .tar.gz file from a client that contains about 800 mb of image files (when uncompressed.) Our hosting company's ftp is seriously slow, so extracting all the files locally and sending ...
EmmyS's user avatar
  • 15.9k
981 votes
12 answers
2.0m views

How do I uncompress a tarball that uses .xz?

I'm used to extracting tarballs with a -xfz flag, which handles gzip and bzip2 archives. Recently I've run into a .tar.xz file and I would like to uncompress it in one step using tar, how can I do ...
Jorge Castro's user avatar
  • 71.8k
779 votes
25 answers
887k views

How can I reduce the file size of a scanned PDF file?

I have a 72.9 MB PDF file that I need to shrink to 500 KB or below. The file was a JPEG image that I had scanned and then converted to PDF.
tamimym's user avatar
  • 7,929
239 votes
3 answers
595k views

How do I compress a directory?

I'm trying to compress a directory and ftp it to a windows ftp. I have tried every tar command I can find to compress a directory. It appears to be ok. Then I transfer it and view it's contents ...
dko's user avatar
  • 2,583
204 votes
2 answers
256k views

"Parsing filters unsupported" error during extraction of RAR file

I have received an .rar which I wish to unpack as it contains something rather important to me that I need to really have now. However even though I can view the contents of the .rar archive in the ...
user avatar
198 votes
7 answers
188k views

What's the difference between .tar.gz and .gz, or .tar.7z and .7z?

Recently, I've been backing up a lot of my data, and I noticed that I can save files as .gz or .tar.gz, or .7z and .tar.7z, etcetera. What are the differences between the normal one and the .tar.* ...
Exeleration-G's user avatar
137 votes
7 answers
289k views

What's the easiest way to unrar a file?

I just realized I can't unrar .rar files on my Ubuntu machine! What's the easiest way to accomplish this fundamental task? If possible I'd love something like 7Zip that I can just right Click, and ...
Only Bolivian Here's user avatar
128 votes
3 answers
530k views

how to extract tar.7z files from command line? [duplicate]

Is there a way to extract files of tar.7z format using command line tools in Ubuntu?
pacodelumberg's user avatar
100 votes
2 answers
187k views

Compressing folders with password via command line

I would like to know whether it is possible to do the following via CLI. I have a Folder F which contains several sub folders and some files. I want to compress folder F into .zip file with the "...
Varun's user avatar
  • 1,969
89 votes
9 answers
141k views

How to reduce the size of a pdf file?

I'm looking for a way in Ubuntu to reduce the size of a pdf (by reducing the quality of the images). I know that this can be done in Ghostscript by typing the following command in terminal: gs -...
Nicole's user avatar
  • 991
88 votes
7 answers
176k views

Zip an archive without including parent directory

I want to zip many folders in a directory tree like so V- something.txt folder folder g.jpg h.jar When I try to zip it, it ends creating a zip archive with the v folder instead of the contents ...
Dami's user avatar
  • 1,031
78 votes
2 answers
350k views

Compress in .tgz

I want to compress files in .tgz. I know how to make tar.gz(with tar and gzip) and some people say it is almost the same, but I need to make a .tgz, how??
RocketMan's user avatar
  • 1,051
76 votes
9 answers
103k views

Multi-Core Compression tools

What compression tools are available in Ubuntu that can benefit from a multi-core CPU.
Luis Alvarado's user avatar
61 votes
3 answers
95k views

Best compression method?

I want to compress a 16GB folder, but what's the best method? tar.gz? tar.bz2 rar? 7z? Would the archive be smaller if I first compressed in a method, then copy the compressed archive to a new folder, ...
Amanda's user avatar
  • 1,017
36 votes
3 answers
166k views

How to extract files from a split 7zip archive?

I downloaded a series of packages that all compress one thing. The files end in .0, .1, .2, etc. The User Lists of these packages I downloaded say to use the file.bat to successfully extract, or to ...
Eugenio's user avatar
  • 361
36 votes
5 answers
46k views

Will btrfs automatically compress existing files when compression is enabled?

I chose btrfs as the format of my / filesystem in the Ubuntu 12.04 LTS installer. After the installation completed, I added compress=lzo to the mount options in /etc/fstab and rebooted. Will the ...
ændrük's user avatar
  • 76.8k
35 votes
4 answers
34k views

Should I use xz or lzma compression?

I was wondering since in Ubuntu 10.10 I have the ability to create both xz and lzma archives. Should I switch to xz? http://en.wikipedia.org/wiki/Xz http://en.wikipedia.org/wiki/Lzma
NightwishFan's user avatar
  • 3,696
34 votes
5 answers
34k views

Is there a way of leveling/compressing the sound system-wide?

As a Laptop user, I'm sure that a lot of people, even the ones using Netbooks would have already gone through this problem. Especially when listening to podcasts, and using it as an example, the sound ...
JethroDawnfine's user avatar
27 votes
1 answer
84k views

zip multiple folders into a zip file using terminal [duplicate]

I wish to store a few folders in a zip file and then convert that zip file into a jar. I have the following folders : META-INF and org. I tried the following command: zip META-INF/ org/ wordcount....
Vineet Kaushik's user avatar
26 votes
1 answer
120k views

Compressing a folder (tar) without its containing directory in the folder name

I am trying to compress a folder with the tar command. When I am trying to compress it, it works fine. The problem is with the file name. Source path: /data/file/ Destination path: /data/repo/...
Seetha Raman's user avatar
26 votes
5 answers
21k views

Compress and split files in the file explorer

If you right click a file in Nautilus and select Compress, then you get a dialog where you can choose a compression format and a filename. If you click on Advanced, then there are settings to split ...
Jo-Erlend Schinstad's user avatar
25 votes
5 answers
31k views

How do I create tar.7z file from the command line?

I would like to zip up my homework from last year. How do I tar and zip the whole folder from command line Ubuntu (I don't have GUI).
alphanumerical74's user avatar
23 votes
6 answers
103k views

How do I use an .img.xz file or get an .img file from it?

I have a file with an xz extension, ubuntu-19.10-preinstalled-server-arm64+raspi3.img.xz. How do you get the .img out of it? My goal is to flash the file on an SD card. I want to use www.etcher.io I ...
BJsgoodlife's user avatar
  • 1,160
21 votes
3 answers
16k views

How can I compress an mp3 file?

I used to download a program in windows that used lame to compress audio of mp3 files and made them smaller in size but I don't know how to do this in Ubuntu. Does anybody know anything about this? ...
Juancho's user avatar
  • 211
20 votes
4 answers
31k views

Any linux command to perform parallel decompression of tar.bz2 file?

I have a rather large file (~50GB) and it takes some time to run tar xvf file.tar.bz2 on it. I'm aware of programs that can do parallel compression for bzip2 files but unaware of programs that can ...
user784637's user avatar
  • 10.9k
20 votes
1 answer
60k views

7z "ultra" settings for zip format

7z "ultra" settings for .7z format are: 7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on What are the "ultra" settings for .zip format (using 7z)?
ᴜsᴇʀ's user avatar
  • 524
19 votes
5 answers
30k views

Command line archive manager / extracter

I keep forgetting all the corresponding extract commands for every compression format. So I was thinking about writing a script that merely maps file extensions to the appropriate extract command. ...
brillout's user avatar
  • 1,438
18 votes
4 answers
51k views

How to install rar (no installation candidate)?

I need the package rar. But I get this error whenever I try to install it: Reading package Lists... Done Building dependency tree Reading state information... Done Package rar ist not available, but ...
Alex's user avatar
  • 181
17 votes
2 answers
12k views

How to set 7z compression level using GUI in Ubuntu?

Archive Manager, or file-roller, doesn't seem to have the option to set the compression level for 7z files. However, the windows client 7-zip has an option to do so using GUI - On Ubuntu/Linux, one ...
Rohith Madhavan's user avatar
15 votes
6 answers
12k views

What is the difference between different "compression" systems?

I've always used TAR and ZIP for compression, but recently I have heard about the *.Z compression algorithm. This brought up a question for me: With all of these compression systems, which one is ...
Kaz Wolfe's user avatar
  • 34.1k
13 votes
2 answers
4k views

Can I see the option tar.gz in the GUI ubuntu 18.04

I am trying to zip in .tar.gz in the GUI, but only these options appear in the window: .zip, tar.xz y .7z Could the tar.gz be in the window?
Marie's user avatar
  • 243
13 votes
1 answer
28k views

Extract a rar file with a password that contains special characters [closed]

How can I extract a rar file with a password that contains special characters like ', ", `, /, \, ^, (space), !, ?, {, }, [, ], $, &, %, *, ~, :, ,, <, >, etc. Here is an example of PASSWORD ...
ᴜsᴇʀ's user avatar
  • 524
12 votes
3 answers
27k views

How do I compress multiple files into a .xz archive?

I want to compress several images into a .xz archive. How do I do that?
Distant Graphics's user avatar
12 votes
6 answers
60k views

How can I maximum compress video files?

I received 4 .mov files from a client that they want on their mobile website via SlideShowPro. Each original file was between 200 and 400 mb. I've gotten each one down to about 30 mb using ...
EmmyS's user avatar
  • 15.9k
12 votes
4 answers
13k views

How to list compression ratio on compression enabled btrfs?

I enabled compression on a btrfs volume. Now how do I know the compression ratio of files or directories? Or at least the overall stats?
exebook's user avatar
  • 369
11 votes
10 answers
15k views

Trick installer to use btrfs root with compression

I want to install Maverick onto a BTRFS root partition. Not for fun or testing, but because I need compression due to a small flash disk (4GB). Now the 10.10 installer finally supports btrfs, but ...
mario's user avatar
  • 3,460
11 votes
2 answers
18k views

btrfs and missing free space

I converted my ext4 partition to btrfs and deleted the save subvolume after doing so. Then I enabled the compression (lzo) of the filessystem in the fstab file and everything is correct so far. Then ...
easteregg's user avatar
  • 211
11 votes
4 answers
18k views

Tool for high picture compression with low loss of quality

Is there a tool which can achieve high picture compression while preserving (as much as possible) the image quality and can compress images in batches, in order to make optimal images for websites?
nixnotwin's user avatar
  • 5,033
11 votes
1 answer
3k views

How to make Files use file-roller again? [duplicate]

How can I get more options (in addition to zip, tar.xz and 7z) and the option to add password when making archive files in file-roller in Gnome 3.22? Thanks! Screen-shot of new create archive in ...
Din's user avatar
  • 2,081
10 votes
4 answers
5k views

How can I store files in an archive without compressing them?

I need to store files in archives, but not compress them. The archive manager takes too long, and I can't find an option to only store (not compress) files. Any suggestions?
wajed's user avatar
  • 176
10 votes
3 answers
36k views

Missing GUI application for 7-Zip?

I installed 7-Zip from Software Center, but where is the GUI application? Original question asked by a user: ich habe 7Zip aus dem Softwarecentrum installiert, finde aber kein Symbol zum öffnen ...
LiveWireBT's user avatar
  • 28.8k
10 votes
2 answers
53k views

How to extract files from a split 7zip archive ended by .001 and .002?

I have two files data.7z.001 and data.7z.002. l tried to extract them using : 7z e asdf data.7z.001 l got this error 7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 p7zip ...
heisen's user avatar
  • 101
9 votes
1 answer
15k views

Simple Scan - Changing the default output File Type to PDF and improving Compression?

Is there a way to change the default output file type in the 'Simple Scan' software provided with Ubuntu 12.10 to be a PDF rather than a JPEG? And is it possible to modify the compression settings on ...
transamazonian's user avatar
8 votes
1 answer
17k views

Unzip subdirectory contents of zip file to /tmp?

As part of a scripted software installation on Xenial Xerus I have a zipped archive called 'test.zip' that contains, among other files, some files in a sub-directory called samples: andrew@athens:~/...
andrew.46's user avatar
  • 38.1k
8 votes
1 answer
30k views

Xfce - GUI for File Compression?

If I remember correctly, using Nautilus in Gnome, I could simply right-click on a file & select "compress". Now I am using Thunar in Xfce & I can't find how to simply compress files... I ...
user44405's user avatar
  • 113
8 votes
2 answers
4k views

How to archive with ignoring files larger than 100MB

I'm trying to archive files with tar and ignoring files larger than 100MB. Is that possible? PS: Not have to use tar.
Faruk Uzun's user avatar
  • 1,280
8 votes
1 answer
4k views

Create RAR archive in 17.10

I used to be able to create a rar archive from a file or folder by just right-clicking on the file (in Nautilus) and choosing "Compress...". I had the option to choose the rar format, which I like ...
Seub's user avatar
  • 393
8 votes
1 answer
2k views

How to make nautilus use file-roller in 17.10 like in 17.04?

In Ubuntu 17.10 ubuntu upgraded Nautilus (File Browser) to version 3.26.0. New nautilus is not using file-roller anymore, it has switched to an integrated compression mechanism. This makes it ...
Artyom's user avatar
  • 1,723

1
2 3 4 5