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
2 votes
1 answer
87 views

Pipe to compressed file but also print content to terminal

How do I maintain a readable output from my program while also putting that same output into a compressed file, gzip or otherwise, so I can parse it later? I run a command that generates a lot of ...
FalcoGer's user avatar
  • 817
0 votes
0 answers
42 views

I have yet to locate any clearly delineated instruction on how to install a .tar.xz file in ubuntu 22+ using the command prompt only. Anyone? [duplicate]

I have yet to locate any clearly delineated instruction on how to install a .tar.xz file in Ubuntu 22+ using the command prompt only. Anyone? I've found so many variations, permutations, and ...
user avatar
0 votes
2 answers
36 views

default Ubuntu lossy photo or photos compression method

I prefer to backup ~/Documents to a tar file and move that tar file to a removable solid state drive. After many years of collecting data, my tar file is approximately 4 GB which is nice since I can ...
H2ONaCl's user avatar
  • 9,443
3 votes
5 answers
4k views

What GUI-based, open-source software options are there for configuring ZFS?

In Ubuntu, configuration of settings such as the following can be done via console as mentioned in this question, including: Choice of compression algorithm Choice of the compression strength ...
Alfred.37's user avatar
  • 257
2 votes
1 answer
327 views

Which file is used for the configuration of ZFS?

In Ubuntu, configuration of settings such as the following can be done via console: Enabling and disabling compression, choice of compression algorithm and compression strength. Enabling and ...
Alfred.37's user avatar
  • 257
0 votes
0 answers
66 views

Compress JPG images with mini lose in quality & usage of smoothing

Which Linux CLI tool is the best for compressing JPG images using a smoothing value for even better image size optimization? I didn't really get along with ImageMagick when it came to smoothing. With ...
Legion's user avatar
  • 1
0 votes
0 answers
115 views

How to backup LUKS drive, compressed?

I had a working Ubuntu LUKS installation on a 120Gb SATA SSD and I have just cloned it using dd to a larger, faster 240Gb NVME SSD (I haven't expanded the partitions yet). lsblk: nvme0n1 ...
localhost's user avatar
  • 243
1 vote
1 answer
120 views

tar lzma autocompression produces the error "This does not look like a tar archive"

The following script mkdir test && cd test mkdir files touch files/{1,2,3} tar --create --file "test.lzma" files/{1,2,3} --auto-compress mkdir extracted_files tar --extract --file &...
cppbest's user avatar
  • 11
0 votes
0 answers
74 views

Which compression types are supported by zless?

I just learned about the amazing zless command which allows me to write zless file.txt.gz instead of the more verbose gunzip -c file.txt.gz | less - in fact less is often configured to do this ...
Cornelius Roemer's user avatar
0 votes
1 answer
2k views

How to use ffmpeg to decrease video file size drastically

I've looked around, but all I can find is people asking how to decrease file size without losing quality. I don't care about quality, I just want to get the smallest file size I can. I'd prefer to ...
Sophie Snoww's user avatar
0 votes
1 answer
166 views

How to find the archive type of an iso file?

For my iso image I used the tgz format, but there can also be an iso with xz, 7z, tar zip, etc. compression. How do I know?
Mario Palumbo's user avatar
2 votes
1 answer
117 views

Files missing from lbzip2 amd64 package for Ubuntu 21.10

Installing the lbzip (2.5-2.1build1) package on AMD64 for Ubuntu 21.10 (impish) appears to be missing the actual binaries. See the file list here: https://packages.ubuntu.com/impish/amd64/lbzip2/...
BITbyBIT's user avatar
0 votes
1 answer
6k views

How to decompress .img.gz a compressed disk image to .img?

Probably this is duplicate, i can't find out related from search engine. How i can extract .img.gz file into .img file? i have files archived as .img.xz and .img.gz. i can extract .img.xz using xz-...
abu-ahmed al-khatiri's user avatar
2 votes
0 answers
345 views

Ubuntu 18.04, compress and split large file with 7z, not working

I need to compress and split a large (64 GB) file in 4 parts on Ubuntu 18.04. It needs to be extracted on Windows later and I thought I would try using 7zip. I tried from the GUI in Nautilus but there'...
Carlo's user avatar
  • 203
2 votes
3 answers
736 views

Crop a specific region from a series of images

I have a series of png-images (actually they are taken from an mp4-file). I want to crop the same region from all the images I have taken. What tool is best for that, such that I can define the region ...
Adalbert Hanßen's user avatar
0 votes
1 answer
384 views

why is genisoimage output all caps?

i ran this command genisoimage -o OS.iso dir_iso I have this input dir_iso /boot /grub grub.cfg OS.bin But getting OS.iso /. //note - don't know why ...
user135142's user avatar
1 vote
2 answers
679 views

No "other options" menu in Archive Manager [duplicate]

I'm on 20.04 and I'm trying to password protect a compressed file with Archive Manager and was told that there should be an "Other Options" menu at the bottom to set a password. But when I ...
snapcrack's user avatar
  • 295
1 vote
1 answer
900 views

Compress a folder to a .tar file in Ubuntu 20.04 via GUI

In the past, I had an option to compress to .tar file from Nautilus. How can I do that with Ubuntu 20.04? I did not expect new distros progress backward in features. I am not after a command line ...
mercury's user avatar
  • 101
0 votes
0 answers
110 views

One tool that WORKS for all archives and compressed files

I have been using 7z, unrar , Peazip and Archive Manager and what not and I am having a hard time matching the compressed file/archive file with the appropriate tool for extracting. The default ubuntu ...
rooni's user avatar
  • 133
0 votes
1 answer
131 views

What happened to e2compr?

Is it a part of the kernel now? Can I enable selective file compression for either ext2, or ext3, or ext4? chattr +c filename does not seem to work. I'm ok with custom kernels but it'll cause some ...
NickDoom's user avatar
  • 249
1 vote
1 answer
150 views

Selectively exracting files from tar.gz file

I have a file data_backup_202.tar.gz whcih contains more than 400 files. Datestamp of those files goes back to 2010. I want to extract or decompress files for last 6months from this data_backup_202....
Vijay Kumar's user avatar
1 vote
0 answers
75 views

Can't reproducibly split 7Z files with file-roller app?

I am aware that there is a command-line interface for doing this, but I prefer the graphical approach, not least because I can select individual files or folders more conveniently. If I were using the ...
RDragonrydr's user avatar
0 votes
1 answer
838 views

How can I zip a large amount of data based on a condition upon the size of the zip files?

I have about 2 TB of image data which I want to group into .zip files. The sizes of individual files vary. I want to put all these files into ZIP archives. Any .zip file cannot exceed 2 GB (1.8 GB for ...
truth's user avatar
  • 101
3 votes
1 answer
150 views

Format-agnostic Zip Extraction Tool

I like being in the command line a lot for efficiency, but one thing I always end up using the GUI for is extracting compressed folders, because the command line tools for unzipping the different ...
setholopolus's user avatar
1 vote
1 answer
1k views

Mounting btrfs partition with compression enabled

I've got a btrfs partition on a SSD drive. This partition is not mounted by default, it's not root. It's just a plain data partition which is mounted on demand. Nothing fancy. The btrfs partition was ...
Cyan's user avatar
  • 254
0 votes
1 answer
952 views

Unpacking .lz format: what does this command do?

I'm trying to unpack Ubuntu Desktop's initial ramdisk (initrd.lz) to inspect some casper components. The lz format is indeed interesting, but what more surprises me is the unpacking method (that ...
Pizza's user avatar
  • 1,378
0 votes
1 answer
676 views

How to configure Krusader's extract context menu to use something other than ark?

I've found this context menu in krusader to be very unreliable over the years, it has hardly ever worked for me. Surely it's possible to configure the context menu to use a custom command, like simply ...
barrymac's user avatar
  • 214
4 votes
1 answer
3k views

Archive Manager: An error occurred while loading the archive

I'm recently getting this error when trying to open a simple zip file using file-roller, aka Archive Manager. I've unzip, unrar and 7zip installed already. However, when I try decompressing the files ...
Sourav Dey's user avatar
3 votes
1 answer
252 views

Running out of hard drive space because compression is not happening quickly enough

I am downloading files (in parallel) which have a very large amount of data (fastq files) into a directory. I am running out of space quickly. So I got the following script (from here, modified ...
An Ignorant Wanderer's user avatar
0 votes
1 answer
76 views

How to zip a mobi file from the CLI?

Using tar works fine: thufir@dur:~/Desktop$ thufir@dur:~/Desktop$ ll total 9720 drwxr-xr-x 2 thufir thufir 4096 Jun 13 13:14 ./ drwxr-xr-x 48 thufir thufir 4096 Jun 13 00:46 ../ -rw-r--r-- ...
Thufir's user avatar
  • 4,433
3 votes
2 answers
203 views

Reduce mp4 size to send through email

I could not send a mp4 using Yahoo! mail because it took around 30 minutes. On Ubuntu MATE 18.04, I reduced the size using ffmpeg. ffmpeg -i sm_Julia1.mpr -s hd480 -strict -2  output.mp4 But the ...
fixit7's user avatar
  • 2,734
2 votes
3 answers
837 views

How to compress images without losing quality

I'm looking for a way to compress images in bulk without losing quality to improve the website loading speed. I'm working with surprisegenie.com and as it's a unique gifting platform so have so many ...
abhimanyu rathore's user avatar
0 votes
1 answer
300 views

Discrepancy in the size of compressed file

I was trying to compress a folder into .tar format. The folder size is around 76 MB. Suppose I want to compress the folder myfolder to my-compressed-folder (in tar format) I tried 2 approaches: 1) ...
dashthird's user avatar
0 votes
2 answers
2k views

How to compress and download directory from remote to local?

I have a directory on my Ubuntu server that has many subdirectories and files. I want to download entire folder, so I used this command: scp -r myuser@mywebsite.com:/path/to/target_directory /path/to/...
evilReiko's user avatar
  • 135
0 votes
2 answers
385 views

Compress folder following any symbolic links

I store a lot of my data in a flat structure and the create symbolic links to different folders where my clients can access them via OwnCloud. I need to compress one of these folders containing sym-...
Werner Raath's user avatar
2 votes
1 answer
3k views

Difference between tar -tf vs tar -tzf

I am trying to list the contents of a tar file. I see that by combining -t and -f I can do so. It seems to work even for compressed archives. The combination of -z in addition with -tf also seems to ...
Arun's user avatar
  • 123
0 votes
0 answers
180 views

Ubuntu 18.04 LTS Desktop Background Compression

I hope some of you can help. I recently took a nice photo and decided I would like it as my desktop background. The image is around 4000x2200 pixels and is in ratio with my monitor. When I view the ...
ArcherBoy27's user avatar
1 vote
1 answer
77 views

Converting and size reduction of .m2t video for Flickr?

I have a .m2t video file that I would like to upload to Flickr. Can someone advise the best way to go about reducing the file size to <1gb and changing the file type to one that is accepted by ...
Rory Shaw's user avatar
  • 113
0 votes
0 answers
59 views

Folder compression

In Windows there is an option to compress the folders to save disk space. This is done by right clicking the folder and selecting the Properties and then pressing the Advanced button Folder Properties ...
Syed Mohammed Omer Farooq's user avatar
18 votes
6 answers
73k 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,112
1 vote
1 answer
4k views

Batch Compress Videos with ffmpeg

I have many videos in a folder, and I want to compress them all with one command. To compress one video I use: sudo apt-get install ffmpeg ffmpeg -i input.mp4 output.mp4 But what if I have many ...
Florian Ludewig's user avatar
1 vote
0 answers
1k views

ubuntu tar.xz multi thread compression from nautilus

I tried to compress large file from nautilus compress menu (tar.xz). it takes huge time and i can see it use 1 thread from my cpu. I set the XZ_DEFAULTS environment variable to .bashrc but still it ...
Oshan Wisumperuma's user avatar
2 votes
2 answers
285 views

How to compress 3000 images in batches of 50

I have a folder with over 3000 images, I want to compress 50 of them individually and store them in tar files. The images are not serially named. How to use write a bash script which does this job?
Pradeep BV's user avatar
0 votes
0 answers
191 views

Unable to lock Zip file Ubuntu 18

I am trying to make a locked ZIP folder in Ubuntu 18.04. I followed this post, but it locked the files inside it and not the ZIP folder as a whole. I can open the ZIP folder without providing a ...
RishiC's user avatar
  • 223
2 votes
1 answer
1k views

Pstore decompression failed

I don’t understand what this error means. Can anyone help? I’ve seen a couple of forums with the same error, but none helped me resolve it. Pstore: decompression failed, ret = -22 ! Pstore: ...
Amoxletne's user avatar
1 vote
1 answer
64 views

Problem with a front end of compressed files

I need to make a frontend for compressed files, the idea is that if you receive a gz or bz2 file, uncompress it with gunzip and bunzip2. If what you receive is a tar.gz or a tar.b2 you should unpack ...
Jesus Ruiz Guirado's user avatar
2 votes
1 answer
2k views

How compress rar with context menu nautilus

In Ubuntu 16.04 i right click folder and select compress type and split size but in 18.04 compress menu not like before and choose type menu in gone i install unrar zip unzip p7zip-full p7zip-rar rar ...
Fakhamatia's user avatar
2 votes
1 answer
3k views

"Compress" option disappears from right click menu when I search for a file on Ubuntu 18.10

I'm searching through a folder to compress a file for sending, and I've noticed that if I Ctrl+F and type the file name, or just begin typing the file name, then the option to 'Compress...' the file ...
user921140's user avatar
3 votes
2 answers
6k views

Compressing folder without using additional space on the drive

I have an 18GB EC2 instance that has run out of space. I wanted to zip and transfer files off the server to a local drive. There is just about 1% free space remaining on it. This means that I cannot ...
electrophile's user avatar
1 vote
0 answers
593 views

Logstash does not compress the old logs

We are using: root@server:~# /usr/share/logstash/bin/logstash --version logstash 6.2.4 on: root@server:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu ...
dw8547's user avatar
  • 444

1
2 3 4 5