Тёмный

gzip file compression in 100 Seconds 

Fireship
Подписаться 3,3 млн
Просмотров 558 тыс.
50% 1

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 711   
@MobiusCoin
@MobiusCoin 2 года назад
This is exactly what 100 Seconds is for. I'm never going to do a full course on gzip but it's nice to know what it's about.
@santiagolerin
@santiagolerin 2 года назад
No need, there's the manpage Or the tldr
@Piupiumacher
@Piupiumacher 2 года назад
you will at some point face gzip and wonder what the magical parameter string means it's just a matter of time
@DivByZer0
@DivByZer0 2 года назад
In 100 seconds he managed to mess up the name of one of the inventors...Mark Adler, not "Alder".
@pelic9608
@pelic9608 2 года назад
There's "full courses" on gzip? What? 😄
@MrEnsiferum77
@MrEnsiferum77 2 года назад
I've tried to read book about compression once and I regret it.
@puito6970
@puito6970 2 года назад
When I first got into linux all these words "tar", "gzip", "tarball" and their commands were a mystery which took me way longer than 100s to figure out. This video is gold for getting started. Putting all this in perspective in less than 2 minutes is just awesome.
@kte4423
@kte4423 2 года назад
I also like how they are not afraid to get "funny" with it. You have "more" and then "less" ("less is more"), you have weird names like 🔫zip, and tarball, and to get help with something you call the "man"
@daniel_2
@daniel_2 2 года назад
@@kte4423 but man isn't originally funny. I think its short for manual (like a computer manual/book)
@kte4423
@kte4423 2 года назад
@@daniel_2 Sure, gunzip makes sense too. I just find it funny that it's called "gun" (zip)
@RealFlicke
@RealFlicke 10 месяцев назад
It's also ridiculously hard to zip/tar things with CLI compared to a GUI. Archiving and compressing being separate commands, weird flags you have to learn and footguns like accidentally zipping every file in a folder individually (happened to me several times).
@zatrox9438
@zatrox9438 2 года назад
SO THAT'S WHAT THE TAR EXTENSION IS, was always curious about that whenever i had to do something in linux, but never actually searched it up
@ChillAutos
@ChillAutos 2 года назад
Wow this was my exact reaction as well. I was always so confused about the .tar.gz, makes so much sense now
@danielrdrigues
@danielrdrigues 2 года назад
sigh, fucking normies, 5y.o I was compiling arch.
@yewo.m
@yewo.m 2 года назад
Yeah, it's helped me to finally know why the files end in their composite extension like .tar.gz instead of just .tar or .gz or something else
@fakezpred
@fakezpred 2 года назад
TApe aRchive
@fhujf
@fhujf 2 года назад
@@fakezpred No, it's Tape ARchive. Do you even Unix?!
@sharpfang
@sharpfang 2 года назад
You're all lucky newer implementations of Tar stripped all the tape-related stuff. Reading through the man page you'd spend an hour to find how to create, or add to an archive, while in the process learning how to rewind the tape, seek the next archive on tape, activate a jukebox-like tape swapper mechanism, wipe a tape, check whether there's enough free space after the last archive to fit yours, switch to a different track on a multi-track tape, set tape drive rpm, and a myriad of others.
@daleryanaldover6545
@daleryanaldover6545 2 года назад
that seems fun
@Truly12p
@Truly12p 2 года назад
@@daleryanaldover6545 but probably counter-productive too
@stickyfingies
@stickyfingies 2 года назад
What? ...huh?? was Tar actually used in the days of magnetic-strip-tape memory?
@symix.
@symix. 2 года назад
@@stickyfingies what "in the days"? Tape drives are used a lot right now in datacenters, like google and amazon, they are great for long term data storage
@stickyfingies
@stickyfingies 2 года назад
@@symix. I had no idea; crazy
@kebien6020
@kebien6020 2 года назад
One interesting difference with zip is that in zip each file is compressed and then archived, whereas in tar.gz you archive all the files and then compress the whole thing. Advantage: Cross-file compression (i.e. repeated patterns across files are used for compression) Disadvantage: You can not extract a single file and leave the rest alone.
@Winnetou17
@Winnetou17 2 года назад
That's what's nice in RAR, it has a flag for that. If you want to compress a huge library of pictures or videos for example, you might want to have them independently compressed. But a large database or text-like files or things like a complete game / program you might want to compress the whole archive.
@dorukayhanwastaken
@dorukayhanwastaken 2 года назад
Couldn't one just gzip [insert glob pattern here] and then tar the individually gzipped files if non-solid compression is necessary?
@lawrencedoliveiro9104
@lawrencedoliveiro9104 2 года назад
The main use for archives that I see is not for saving my own data, but for distributing collections of files. And normally when you get one of those you want to extract everything.
@smallcatgirl
@smallcatgirl 2 года назад
@@Winnetou17 7z is the new rar.
@PauxloE
@PauxloE 2 года назад
The actual compression algorithm (deflate) is the same between zip and gzip. Zip adds the archiving around it, while gzip just adds a small header and a checksum, so it's lighter.
@nitromegamer100
@nitromegamer100 2 года назад
fireship your insane! im binging your entire videos like high quality paid courses and its actually helping me alot in my assignments, kudos
@AshishKadam
@AshishKadam 2 года назад
These 100 second videos are in a way gzipped version of all the knowledge acquired over a long time, isn't it? 🙂
@avidrucker
@avidrucker 2 года назад
😂😂😂
@bobonaqa
@bobonaqa 2 года назад
more like jpeg lol
@ZelenoJabko
@ZelenoJabko 2 года назад
It would need brotli. Then it would maybe actually be 100 seconds
@FreshSmog
@FreshSmog 2 года назад
Wat. Living in the era of winrar and 7zip, it never occurred to me that archiving was an intermediary step for zipping multiple files, I always assumed the compression program would handle it on it's own. I've never been able to figure out the purpose of tar until this video. So that's what .gz and tar.gz meant.
@NSLikeableHuman
@NSLikeableHuman 2 года назад
It also nicely fits with the UNIX philosophy of having small programs doing a single focussed job. tar does the archiving while gzip does the compressing. :)
@bloocifer
@bloocifer 2 года назад
tarballs sounded so intimidating to me and i thought it was something complicated lmfaoo i always wondered. its so freaking simple. i just made gzipped and gunzipped a couple files and then made a tarball out of them. shrank 250kb to 80kb. Cool stuff lol Just goes to show you how you can get in your own way sometimes. And also how good Fireships videos are.
@sum1179
@sum1179 2 года назад
This man is so considerate, he even included the -v flag (which for starters stands for verbose) just so you can see your files being compressed, truly a born teacher. Here's an explanation of the flags used by him: -c = stands for create, it's the one you'd use the most. -z = tells tar to compress using gzip. There's many other ones you can choose from, which imo gzip being the best. -v = verbose, tells tar to display output in the terminal. -f = stands for filename, usually a directory. You can read most, if not all options using the --help command, with two hyphens. Even if you use windows, using the terminal makes your life way faster if you get used to it. I highly recommend giving a shot to the lifestyle.
@Gesepp95
@Gesepp95 2 года назад
Where can I learn about the basic Windows equivalents to core GNU functions?
@sum1179
@sum1179 2 года назад
@@Gesepp95 Most of the stuff you can use in linux is included in windows as aliases. They should have similar, if not the same functions that what you're used to has.
@Gesepp95
@Gesepp95 2 года назад
@@sum1179 Thank you!
@scoreunder
@scoreunder 2 года назад
not gonna lie, i assume when most people write tar -cvf that they literally just learned it as a package deal and haven't looked into it.
@Ogmobot
@Ogmobot 2 года назад
I remember the flags as "Compress Ze V--king Files"
@GiggityGlen
@GiggityGlen 2 года назад
Oh yeah, compression really played a hand when I implemented a redis caching in the backend. It significantly reduced memory usage and network traffic to cloud redis. And gzip is actually really fast too (we save string to redis as key val).
@erickshaffer6615
@erickshaffer6615 2 года назад
So it is string key and gzip file as the Val?
@tomydurazno6243
@tomydurazno6243 2 года назад
Had the same issue, using compressed GZip strings and Redis type Hash, the size used is 1/10 of what it was before
@GiggityGlen
@GiggityGlen 2 года назад
Nah, you can save different data types as val but not a file if I remember right. What I did is JSON stringified data and compress the string after. Issue with this approach is that Json parse is not enough to convert values like functions, but that's okay cos you shouldn't be caching functions inside redis anyway. Oh and Json parse is crazy fast to in es5
@liamkearn
@liamkearn 2 года назад
What did I just read 😂
@juice2
@juice2 2 года назад
I usually use zstd (Zstandard) for files when the portability of gzip or zip is not required. Also lz4 is pretty cool to use in applications because of its ultra-low compression and decompression overhead.
@lawrencedoliveiro9104
@lawrencedoliveiro9104 2 года назад
zstd is widespread enough that you can consider it portable nowadays. And tar supports it, too.
@smallcatgirl
@smallcatgirl 2 года назад
btrfs uses zstd transparent compression.
@MenacingPerson
@MenacingPerson 2 года назад
Not by default.
@smallcatgirl
@smallcatgirl 2 года назад
@@MenacingPerson but it does in fedora.
@pavelperina7629
@pavelperina7629 2 года назад
@@lawrencedoliveiro9104 I wouldn't say so. Give tar.zst or 7z created with zstd/brotli/lz4 patch to 100 people, I guess one of them will be able to decompress it. When I experimented with LZ4 i found it's useless for anything, but sparse data (such as segmentation labels where index does not change often) and then it's perfect - something like run-length compression. Am I wrong about LZ4? One I stumbled on lossy compression of scientific data that had maximum allowed error and that was likely using some kind of predictor (basically it compressed n-dimensional arrays of integers or floating point), but I have no idea what was the name and if it was free (I think it was not).
@augustday9483
@augustday9483 2 года назад
I had to write my own implementation of the Huffman encoding algorithm for a computer science class back in the day. Compression and data encoding is a really interesting subject! It's an interesting scientific problem to figure out how to represent lossless information in the last amount of bits possible.
@colton8971
@colton8971 2 года назад
While an undeniably good developer, Jeff really shines with his ability to synthesize and condense down information. These videos are snappy, engaging, and eloquent. Thank you a million, Jeff.
@technanner
@technanner 2 года назад
I was today years old when I realized gunzip was g-unzip, and not just a cool name for a command
@KingThrillgore
@KingThrillgore 2 года назад
I've always used `tar xzvf` in place of gunzip.
@proloycodes
@proloycodes 2 года назад
@@KingThrillgore oh wait the tar subcommands themselves are compressed too?
@xrafter
@xrafter 2 года назад
@@proloycodes The z in xzvf is gzip. Keep in my v is not need only xzf is enough.
@proloycodes
@proloycodes 2 года назад
@@xrafter well they still are compressed, but thanks for the info anyways!
@lawrencedoliveiro9104
@lawrencedoliveiro9104 2 года назад
Actually tar will automatically recognize the compression format when extracting, so “xvf” should work on all compressed tar archives.
@Bemajster
@Bemajster 2 года назад
Now do brotli!
@nathanielsabanski
@nathanielsabanski 2 года назад
Left out the standard for most *nix packages in 2022... zstd. The whole linux ecosystem pretty much uses zstd now. It's insanely good.
@xrafter
@xrafter 2 года назад
Never heard of zstd. Should I use ?
@lawrencedoliveiro9104
@lawrencedoliveiro9104 2 года назад
Yes, it is definitely becoming more popular. Blender has removed the option for gzip compression when saving its documents (though it can still read existing gzip-compressed ones) in favour of zstd.
@slonkazoid
@slonkazoid 10 месяцев назад
zstd would beat out brotli on the web if it were implemented with a similar dictionary
@Argletrough
@Argletrough 2 года назад
p sure you can use -a instead of -z with tar and it will determine which compression algorithm to use based on the extension of the archive file name you provide
@KingThrillgore
@KingThrillgore 2 года назад
Compared to LZMA and xzip, gzip isn't the most efficient at compression, but its ubiquitous. And the original developers didn't become miserable drunks long after releasing it. Mark Adler (you misspelled his name) still works at NASA.
@jamhamtime1878
@jamhamtime1878 2 года назад
Which one is LZMA again? Is it the one where you'd get unbelievably tiny files, but it takes super long to compress and decompress? Would also recommend lrzip, faster and smaller file size than bz2
@xrafter
@xrafter 2 года назад
@@jamhamtime1878 What about this brotli thing? Have you tried it?
@xrafter
@xrafter 2 года назад
@@jamhamtime1878 Also lzma is like xz but different.
@KingThrillgore
@KingThrillgore 2 года назад
@@jamhamtime1878 actually I think that's bzip and it's really slow to unpack.
@slonkazoid
@slonkazoid 10 месяцев назад
@@jamhamtime1878 LZMA2 is the algo behind xz heard about lrzip and i think it is cool but basically only exists on linux
@victorpinasarnault9135
@victorpinasarnault9135 2 года назад
I love your videos! I can't get enough of them.
@smith4591
@smith4591 2 года назад
I found a way to compress 1GB text file to 0byte by replacing it with an empty txt file.
@wycliffe_ndiba
@wycliffe_ndiba 2 года назад
Does it beat Pied Piper tho'😅
@adityak1231
@adityak1231 2 года назад
Was looking for this
@techlifejournal
@techlifejournal 2 года назад
May be lol
@Mutual_Information
@Mutual_Information 2 года назад
It’s refreshing when a video focuses on information density
@GLUBSCHI
@GLUBSCHI 10 месяцев назад
Shoutout to the people behind pako for removing one of the most important functionalities from their project making me spend another half an hour trying to figure out how to use it
@vicradon
@vicradon 2 года назад
Thank you Jeff for another amazing computer science explanation. I think you should make a video about data transformation with DBT.
@abhishekjm8611
@abhishekjm8611 2 года назад
Gzip is a godsend (or Gailly/Alder send).
@nguyenducminh4966
@nguyenducminh4966 2 года назад
@Fireship 1:35 You're incorrect about the compression ratio. A ratio of 90.3% means that the size of the compressed file equals 90.3% of that of the original file, which means that the lower the ratio, the more compressed it is.
@FaisalAfroz
@FaisalAfroz 2 года назад
I was also confused about the ratio formula whether it is calculated as (new)/(original) or (original-new)/original.
@xrafter
@xrafter 2 года назад
Ratio + Ls + Gzip
@jhonlee788
@jhonlee788 Год назад
GZIP is better than LLM
@hakimehamdouchi7468
@hakimehamdouchi7468 5 месяцев назад
Large language models
@fabian.hertwig
@fabian.hertwig 2 года назад
I love that your channel is pure information, no duplication. Perfect compression 👌🏼😌
@stevemcwin
@stevemcwin 2 года назад
Hey Jeff, could you please do a video on the Nim programming language?
@Jasonwynn10
@Jasonwynn10 2 года назад
I'd be interested in seeing an implementation of server-side to client-side compression and decompression. Would you be able to make a video on that? It could also be cool to show off brotli too :)
@shlongchad6159
@shlongchad6159 2 года назад
*and the servers. Though you do need to explicitly enable compression inside nginx, etc. sometimes if you are not using a managed hosting and running your own VPS, Cloud Instance, whatnot.
@fallingpizza11
@fallingpizza11 2 года назад
it definitely wouldn't have fit in this 100 seconds, but it would be cool for a quick explanation about the vulnerability of using gzip with https and why its a problem.
@avidrucker
@avidrucker 2 года назад
Do you have some more infos or pointers to good resources on the topic?
@ImLlaver
@ImLlaver 2 года назад
Can you do some "in 100 seconds" videos on different IDE's and build tools? Would be really cool to see a condensed explanation of VSCode, WebStorm, Postman, etc.
@shlongchad6159
@shlongchad6159 2 года назад
VS Code is a general purpose code editor that plays nice with all languages, as long as there's an extension for one. WebStorm, if I recall correctly, is a highly specialized IDE for writing JavaScript and related stuff, TypeScript, etc. I presume. It has specific features to work with JavaScript built into it that you either can't get on VSCode or need a ton of extensions to replicate. Postman is an app that's used to test API endpoints and develop API systems.
@ImLlaver
@ImLlaver 2 года назад
@@shlongchad6159 I've used all of these specific pieces of software and know them well, just figured they would be a good starting point if Fireship decides to branch out to development tools.
@tropicaldog430
@tropicaldog430 2 года назад
He has videos about vscode and vim i think
@Kerbiter
@Kerbiter 2 года назад
how to exit vim in 100 seconds
@woalk
@woalk 10 месяцев назад
@@KerbiterAnd it’s just “ESC :qa!” and then 99 seconds of silence?
@santiagolerin
@santiagolerin 2 года назад
I would loved to have this video 5 years ago when i deep dived into linux. It's excellent ❤️
@DrunkenUFOPilot
@DrunkenUFOPilot 2 года назад
You usual excellent super-fast firehose of information, informative to anyone whose brain has "turbo mode". However, despite your usual perfection, this one video has a flaw! Yes, hard to believe but it's ture! I mean, true! The one inventor, Mark Adler, is not named Mark Alder. He's well known in the NASA/JPL space mission community, besides co-inventing a great compression algorithm.
@lawrencedoliveiro9104
@lawrencedoliveiro9104 2 года назад
The key point not mentioned here is that information content is a statistical concept. The closer your data stream looks like to random noise, the less compressible it is. It is inherent in the design of compression algorithms that they produce a data stream that looks very much like random noise.
@Kitulous
@Kitulous 10 месяцев назад
that's why the extension is .tar.gz because .tar turns multiple files into one file and .gz compresses that file as it cannot compress multiple files
@RobertCastilloC
@RobertCastilloC 2 года назад
I thought tar cf automatically did compresses files Edit: now I realize it just creates the archive
@AndyHerbert254
@AndyHerbert254 10 месяцев назад
Ok but can someone give me a lossy compression algorithm that works with any filetype, beyond just jpeg? (I do like losing important data)
@hajjdawood
@hajjdawood 10 месяцев назад
As a note, the superior operating system (macOS) also has gzip built in give that it runs on a Unix subsystem (better then the cheap imitation known as linux)
@coolwhip5295
@coolwhip5295 2 года назад
The only thing on my mind while am watching this video is flashbacks of Silicon Valley 😂
@ikannunaplays
@ikannunaplays Год назад
How about one on UPX compression for executables that leaves the exe file as a usable exe file.
@olmrgreen1904
@olmrgreen1904 2 года назад
I never though I wanted to know how gzip worked
@unlimitedbytes-random
@unlimitedbytes-random 2 года назад
Where is the "Thanks now I can add 5 years of gzip to my resume" comment?!
@krtirtho
@krtirtho 2 года назад
We almost forgot there's a Decentralized Database named *GUN.js* Do u remember it too?
@sinom
@sinom 2 года назад
"lossless file compression" I don't think anyone wants a lossy general file compression format
@HolyRamanRajya
@HolyRamanRajya 2 года назад
This didn't talk of compression and decompression times compared to other lossless compression. So how is it?
@trickfilm400
@trickfilm400 2 года назад
maybe a nice video idea could be a overview of some pf the popular package manager like apt, pacman, apk, maybe winget, so you can update all systems without googeling the distro+package manager name to search the update command?
@justacherryontop6538
@justacherryontop6538 Год назад
why don't you just say under 180 seconds ? or the exact time of the video
@modolief
@modolief 2 года назад
Still waiting for TLA+ in 100 Seconds. I mean who needs practical videos when you can talk about formal specification language for concurrent systems and distributed systems?
@ABHAY-hu9kw
@ABHAY-hu9kw 2 года назад
I had requested you to get connected on linkedin, But it seems you ignored 🤧😅
@samvid1992
@samvid1992 2 года назад
gnu in 100 seconds please!!!
@gizmoknow-how2022
@gizmoknow-how2022 10 месяцев назад
Next 100 secs - Middle out compression
@gabrielmora6144
@gabrielmora6144 10 месяцев назад
omg I actually understand tar gz now. this is fantastic.
@MercyFromOverwatch2
@MercyFromOverwatch2 2 года назад
Jeff is still my favourite tech youtuber
@AndrewSunada
@AndrewSunada 2 года назад
Nice! Super informative! Been doing this over 12 years and just this is a ton of news to me.
@raandomplayer8589
@raandomplayer8589 2 года назад
Thank you for this video! .tar.gz had always stuck out to me. Very weird extension considering it have 2 dots
@finsflexin
@finsflexin 2 года назад
Can you explain why gzip compressing takes so long (when rapidly animating images) in JavaScript. I threw in 0 compression level and it still took more time than my custom 2d renderer rendering multiple elements.
@linuxization4205
@linuxization4205 2 года назад
It's hard to find patterns to shrink in images with lots of colour, and when it's compressing multiple images, it will be super hard.
@lawrencedoliveiro9104
@lawrencedoliveiro9104 2 года назад
If your images use a compression like JPEG, then they already look very much like random noise. In which case further compression isn’t going to work very well.
@KingThrillgore
@KingThrillgore 2 года назад
Images are usually already compressed and as binary data you're not going to get a lot more improvement in the process. SVGs are almost always text and compress very efficiently.
@finsflexin
@finsflexin 2 года назад
@@KingThrillgore SVGs are wonderful. I know clients that send PNG icons. PNG icons can get be so large, converting to WEBP and shrinking the icons definitely help a little, but still not > 1KB like you would see in an equivalent SVG icon.
@finsflexin
@finsflexin 2 года назад
@@linuxization4205zlib compression still took a decent amount of time in 0 compression level (even though all it does is add a padding around a buffer). I can't imagine concatenating 2 strings and taking that long.
@nithinraj1428
@nithinraj1428 2 года назад
Everthing was alright untill not porn displayed
@fuelformind
@fuelformind 2 года назад
wish one day i can make pro and clear videos like yours great job always (im not a programmer i just enjoy the videos)
@nicejungle
@nicejungle 2 года назад
I always chuckle as I tar cvzf a bunch of files to my 128 GB usb drive when I recall this command was about *TAPE*. Almost as silly as Qwerty keymap was about type writer.
@optymystyc
@optymystyc 2 года назад
“Ending in dot Jeezy” that took me out. Lol. You’re goated for that one 😂.
@antonyjr.devlogs5957
@antonyjr.devlogs5957 10 месяцев назад
Funfact, the like button glows when Jeff say's like and subscribe
@niquezebi7991
@niquezebi7991 10 месяцев назад
yes i thought i was the only one see it
@GetushaHD
@GetushaHD 2 года назад
Do you forget about the Technical Interview Video? I am waiting
@aathifmahir
@aathifmahir 2 года назад
Love to see video on DotNet Maui
@galgrunfeld9954
@galgrunfeld9954 2 года назад
The information in this video is pretty compressed, too.
@Wartinald
@Wartinald 2 года назад
0:37 and that's how I accidentally discovered a way of making Heroes of Might & Magic 3 styled trees 👀
@ShonenReviews
@ShonenReviews 2 года назад
Man, I saw the first tar.gz file back in 2008, I until today I have never know what the heck it's mean. Thanks.
@bobuccman1424
@bobuccman1424 2 года назад
i would love to see a 100 seconds video about nim
@TheSkyCries1
@TheSkyCries1 2 года назад
I remember my first reaction to working with a file that ended in a .tar.gz as an intern.....
@xrafter
@xrafter 2 года назад
What was the problem? Needed to install gnu tar ?
@Crux161
@Crux161 2 года назад
When I first started getting into Linux in the early 2000s I was so confused by gzip. Then I discovered how awesome RAR and 7z are. Back then you’d leave a download running all night just to hopefully clear ~700MB download just for it to fail right at the end. 🤦‍♂️ f’ing dialup
@siddiki9778
@siddiki9778 2 года назад
Wouldn't it be smarter to make that 700MB into smaller chunks to mitigate connection issues like dialup? I always thought early 2000s files were chunked into millions of tiny pieces but seems like that's not the case.
@Crux161
@Crux161 2 года назад
@@siddiki9778 Linux isos I tried downloading in the day were in one large file. DSL wasn’t u heard of, we just didn’t have it at my house. Getting a second phone line for dialup? That was the extent of luxury 🤣
@siddiki9778
@siddiki9778 2 года назад
@@Crux161 Seems painful 💀
@lawrencedoliveiro9104
@lawrencedoliveiro9104 2 года назад
Most download tools and protocols very quickly acquired the ability to resume interrupted transfers, precisely to get around this problem.
@xorinzor
@xorinzor 2 года назад
I really love these kind of videos. Short & sweet. You really feel like you've learned some fundamental (and interesting!) things in a very short amount of time
@FaZekiller-qe3uf
@FaZekiller-qe3uf 2 года назад
no views yet 136 comments.
@kandycan
@kandycan 8 месяцев назад
I wondered why .tar is followed by gz whenever i compress via linux. Now it makes sense.
@thienviet3429
@thienviet3429 2 года назад
For guys who is a use python and still don’t understand: gzip scans your code Analyze everything If (I don’t know how much code you did, but I make an text with 1 GB and my laptop smells like fire) are the same, then: b = len(your code) def a(): print(your scanned code with the same meaning) print(the rest of the code) print(your same scanned code with the same meaning, but with a different function and code) print(the rest of the code) …. …. …. for _ in range(b) a()
@pranavprashant1196
@pranavprashant1196 2 года назад
This saved me in production. I saw a massive reduction of 70% in case of large nested json lists having similar keys. It reduced 400+KB data size to approx 100+KB in my case
@pavelperina7629
@pavelperina7629 Год назад
There are some inaccuracies. I believe that deflate compression comes was either stolen/inspired from lharc or was invented by Phil Katz (PKARC, PKZIP) by some modification to the original code. Mark Alder and the other guy just took deflate compression and used it to replace compress for single file compression, cause TAR is used for metadata on Unix systems (likely becase there were not requirements as storing compressed files directly to a bunch of floppies as on MSDOS machine with small or no harddrive). In simplicity, ZIP is like many gzip files attached to the end of each other with a central directory attached to the end, so it allows to decompress the archive from the start in a sequence or listing it's content and finding specific file to unzip. Tar+gz has better compression, because everything is put together and it compresses repeated patterns across files.
@joshuapare4304
@joshuapare4304 Год назад
gRPC in 100 Seconds please!! We’ve started using gRPC at our company and love it, mostly for the type enforcement and reduced payload size thanks to sending information over a binary stream instead of human readable, inefficient-to-parse JSON
@ghosttxii7458
@ghosttxii7458 2 года назад
Can you do Scala in 100 seconds?
@b_mawuli
@b_mawuli 2 года назад
1:59 the 'not porn' file. 🤣
@duckyyy2682
@duckyyy2682 2 года назад
Do HolyC in 100 seconds next!
@AkinBelieve
@AkinBelieve 2 года назад
between Yung gz and the gunzip command, I feel like these guys listened to gangster rap while coming up with this years ago.
@abidd
@abidd 2 года назад
You don't have to type anything in the command line on linux! I just right click and choose compress. This can be on one file or many. I don't know why most linux videos try to scare people with the command line way of doing everything. Linux is just like windows. I never use the command line and I have been using linux for over 10 years.
@davidfraser2946
@davidfraser2946 2 года назад
“Why should I learn gzip when I can do everything FORTRAN.” - my 80~year-old father
@slonkazoid
@slonkazoid 10 месяцев назад
i almost never use gzip xz -9 with 12 threads and a 24 GB memory limit can compress really well, whereas zstd can compress and decompress extremely fast if you need something in the middle, xz -5
@K5Doom
@K5Doom 10 месяцев назад
The way I always remember the flags to gzip+tarball is thinking in Arnold's voice "Compress Ze Files!!!" -czf
@lucassilvas1
@lucassilvas1 2 года назад
Anyone else here didn't get notified of this video? It doesn't even show up on my notifications menu. I just came across it on the front page.
@surajsharma10008
@surajsharma10008 2 года назад
The "not porn" file 😂 2:00
@blueboy3990
@blueboy3990 10 месяцев назад
It was a typo, he replaced the h by an n
@ErenUestuen
@ErenUestuen 2 года назад
Not porn i dont trust that file name
@CarlTheYoutuber10k
@CarlTheYoutuber10k 2 месяца назад
black midi creator: nah. I use xz
@anonl5877
@anonl5877 2 года назад
tar is so confusing, it has more flags than any other commonly used unix utility. What's with the -cvf?
@KingThrillgore
@KingThrillgore 2 года назад
The GNU version of many Unix utilities has flags to control additional functionality that has become part of the Single Unix Spec. c creates a new archive, v provides verbose output, f assumes yes on every prompt.
@xrafter
@xrafter 2 года назад
@@KingThrillgore f for file, tar file not yes.
@lawrencedoliveiro9104
@lawrencedoliveiro9104 2 года назад
“f” means create an output file, rather than writing to a tape drive.
@McDevil1988
@McDevil1988 2 года назад
I would have expected to learn more about how gzip works.. but hey.. at least only waisted 100 seconds of my time. Nice video nevertheless..
@abderrahimaourir
@abderrahimaourir 7 месяцев назад
Thankfully, I use Pied Piper compression, it's reliable and fast, almost lile pocketing a sandwich while eating another.
@SoulisYT
@SoulisYT 10 месяцев назад
This is awesome !!! I was always wondering why we use the combination on tar and gzip. Now I know !!!
@KangaGamer
@KangaGamer 2 года назад
I'm glad I'm not the only one who compresses my "Not porn" in a lossless manner.... WAIT NOT PORN NOT PORN!!
@tldoesntlikebread
@tldoesntlikebread 2 года назад
In a course I learned about gzip. You can't gzip a gzup file but on the next I learned of bzip2 and bzipped the gzip file and then gzipped the bzip of the gzip file and I just kept doing it to see how small I could make it, it eventually stopped getting smaller and the file extension went to a newline, I had to unzip it all. And on the next page, I learned of the xzip file...
@johntheawsomeful
@johntheawsomeful 2 года назад
Just an awesome dev channel. Is Fireship the most popular on RU-vid??
@PrimeToolbox
@PrimeToolbox Год назад
You are the master td;lrizer of computer concepts! Awesome channel.
@RandomDays906
@RandomDays906 2 года назад
-czvf and -xzvf Compress/Xtract Ze Vucking Files
@v3n0me7
@v3n0me7 10 месяцев назад
What does he mean "I'll SEE you in the next one" ? Did I miss "how to hack a computer's webcam in 100 seconds" ?
Далее
TempleOS in 100 Seconds
2:33
Просмотров 1,6 млн
Explaining File Compression Formats
15:26
Просмотров 145 тыс.
When Goalkeepers Get Bored 🤯 #3
00:27
Просмотров 1,1 млн
ХОМЯК ВСЕХ КИНУЛ
10:23
Просмотров 635 тыс.
10 weird algorithms
9:06
Просмотров 1,2 млн
100+ Linux Things you Need to Know
12:23
Просмотров 1,1 млн
How File Compression Works
11:25
Просмотров 264 тыс.
When you Accidentally Compromise every CPU on Earth
15:59
How A Steam Bug Deleted Someone’s Entire PC
11:49
Are Linux Smartphones about to KILL Android?
11:19
New Breakthrough on a 90-year-old Telephone Question
28:45
When Goalkeepers Get Bored 🤯 #3
00:27
Просмотров 1,1 млн