Zip vs Tar.gz Files Explained and Compared (Archiving and the DEFLATE algorithm)

  Рет қаралды 11,472

Tony Tascioglu (TechnoTony)

Tony Tascioglu (TechnoTony)

Күн бұрын

Пікірлер: 28
@eduardmart1237
@eduardmart1237 2 жыл бұрын
You make really interesting videos! Especially because they cover not very popular, but really important topics about linux.
@pavelperina7629
@pavelperina7629 2 жыл бұрын
Minor stuff: Tar files have directory entry in a blocks aligned to 512B and 512B long ahead of each file. Basically one sector on old discs. Files are then padded by zeros. Zip files have directory entry in a block in front of each file with much less attributes (but more than gzip I believe), so it can be written as a stream and then each directory entry is repeated in the end file. Offset to the central directory is stored at the very end of file. IMHO choices are: zip for maximum compatibility, tar.gz for compatibility within Linux bubble and archiving files including user rights (which is pointless except backups) 7z for maximum compression if it's worth the time and relatively good compatibility within IT bubble lz4 for maximum speed on large sparse data for internal use zstd as a tradeof of good speed and compression for general purpose (beats ZIP's inflate/deflate almost every time in both (de)compression speed and ratio), but for internal use as it's not widespread and it's not archive format so it needs container such as 7zip, but 7zip itself has to be patched to support it
@sknfer
@sknfer 2 жыл бұрын
I was going to sleep then this video popped up , great explanation of various topics, u deserve more subs
@aces8481
@aces8481 2 жыл бұрын
very clear explanation you are a prodigious talent my friend
@TonyTascioglu
@TonyTascioglu 2 жыл бұрын
Thanks!
@prashanthkumar0
@prashanthkumar0 6 ай бұрын
5:50 technically zip files store metadata at the end of archive also known as EOCD. it makes it easier to add new files. as it just need to append those and rewrite metadata at end of file.
@vukanoa
@vukanoa 2 жыл бұрын
This was very well explained. Thank you.
@tulsatrash
@tulsatrash 2 жыл бұрын
Woo! Thank you for making this.
@TonyTascioglu
@TonyTascioglu 2 жыл бұрын
Thanks for the kind words!
@szymonpiechutowski2340
@szymonpiechutowski2340 9 ай бұрын
Thanks for a very useful video!
@borsasostorangunt
@borsasostorangunt 2 жыл бұрын
Awesome video, keep making more!
@IO___II____OI
@IO___II____OI 8 ай бұрын
Thank you for this
@sharlove3508
@sharlove3508 2 жыл бұрын
wonderful explanation, ty😎
@TonyTascioglu
@TonyTascioglu Жыл бұрын
Thanks!
@Rainy32434
@Rainy32434 2 жыл бұрын
Great video, thanks!
@randomdamian
@randomdamian 9 ай бұрын
Awesome video!
@ArmandoCalderon
@ArmandoCalderon Жыл бұрын
great explanation.
@TonyTascioglu
@TonyTascioglu Жыл бұрын
Thanks!
@sunnyyoda
@sunnyyoda Жыл бұрын
Nice ❤
@LeekFree
@LeekFree 7 ай бұрын
Good Video!
@ConorFenlon
@ConorFenlon 2 жыл бұрын
Would it be possible to convert all files you want to compress to plain text files prior to compression? If the DEFLATE alg works better on text files, that would seem like a good idea, no? Is it more efficient to convert an mp4 to text, then compress, than just compressing the mp4 directly? 🤔 So many questions! 😂 Thanks for the explanations Tony. Keep up the great work! 😁👍🏻
@NielsGx
@NielsGx Жыл бұрын
bruh what mp4 is mp4, you can't "translate" it to txt, whatever this even means. when saying txt compress better, he's talking about compressing text that have 26 symbols from the alphabet, and have been designed ti compress well language, and not really for random stuff, because y'know, we use languages lmao
@ConorFenlon
@ConorFenlon Жыл бұрын
@@NielsGx Yes, you're absolutely right. We use languages. Like Machine Code, Binary Coded Decimal, Binary, Assembly Code, Hexadecimal. The list goes on and on and on. You can represent an mp4 video (or any other file type) in whatever type of encoding you want. Then we transmit that data using algorithms like BPSK and QPSK using beams of light to shoot the data down massive undea-sea cables from continent to continent. Literally anything is possible. Even the words you're reading from this comment right now have been transmitted by strings of 1s and 0s to explain this to you. But of course, what do I know? I've only been studing Electronic Engineering and Computer Science since before you lost all your milk teeth.
@mgord9518
@mgord9518 8 ай бұрын
It's possible but there's no advantage. DEFLATE compresses text better than binary because natural text typically has less entropy. When you convert binary to text (using hex, base64, base91 etc) you cannot magically remove that entropy, so you get seemingly random text that's bigger than the original data
@1aminepro
@1aminepro 2 жыл бұрын
new subscriber here, love your content, if only you put that mic down
@AnthonyTaylor-o5j
@AnthonyTaylor-o5j 3 ай бұрын
Hernandez Betty Wilson Anthony Lee Amy
@ilhammega
@ilhammega Жыл бұрын
Accidantly i get to watch this video. I need tuttorial to convert backup Whatsapp acc in tar.gz to txt. Can you give me tuttorial?
@Bladedomainandhosting
@Bladedomainandhosting 2 жыл бұрын
tar tar tvf setuptools-58.0.2.tar.lz find the file you want tar xvf setuptools-58.0.2.tar.lz setuptools-58.0.2/tools/finalize.py no need for it to extract it all :)
Linux Audio Explained (ALSA vs PulseAudio vs JACK vs Pipewire Explained)
18:52
Tony Tascioglu (TechnoTony)
Рет қаралды 158 М.
Explaining File Compression Formats
15:26
ExplainingComputers
Рет қаралды 152 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Archiving and Compression on Linux - Basic tar Commands
16:11
tutoriaLinux
Рет қаралды 65 М.
How Branch Prediction Works in CPUs - Computerphile
25:57
Computerphile
Рет қаралды 76 М.
Why Are Tarballs STILL A THING? 🤐
7:50
NIX tricks
Рет қаралды 63 М.
Archiving & Compressing (Linux+ Objective 1.2.4)
23:44
Shawn Powers
Рет қаралды 7 М.
How PNG Works: Compromising Speed for Quality
32:00
Reducible
Рет қаралды 645 М.
How are Images Compressed?  [46MB ↘↘ 4.07MB] JPEG In Depth
18:47
Branch Education
Рет қаралды 3,7 МЛН
How to Use Tar on Linux | Command Line Tips from Linode's Top Docs
23:26
Американцы красят асфальт?
0:27
BAZAR CLUB
Рет қаралды 188 М.
Её автомобиль никто не хотел ремонтировать!
20:12
Гараж Автоэлектрика
Рет қаралды 1,5 МЛН
для всей семьи
0:56
Стакановец
Рет қаралды 191 М.
Самые простые строительные леса
0:54
Канал ИДЕЙ
Рет қаралды 1 МЛН