0:00
Let's talk about LZMA compression and
0:02
how you can use it to shrink those
0:03
massive files. So, you've got this
0:06
problem, right? Your files are just way
0:07
too big and taking up all your space.
0:10
Well, meet LZMA. It's an algorithm
0:13
that's built to make those files way,
0:14
way smaller. You'll see a couple of
0:16
formats, but honestly, XZ is the modern
0:19
one you want to be using. So, what's the
0:20
big deal? Simple. It's got one of the
0:22
best compression ratios out there. All
0:25
right, let's get into the how-to.
0:27
Compressing a file is actually super
0:29
simple. You literally just type xz and
0:32
then the name of the file you want to
0:33
shrink. That's it. Okay, so how do you
0:36
get it back? Well, that's just as easy.
0:38
Use the nx command and your files back.
0:41
But what about a bunch of files? For
0:44
multiple files, you first use tar to
0:46
bundle them all up into a single
0:47
archive. And to get everything back out,
0:50
just one simple tar command does the
0:51
whole job. But what if you want to push
0:53
it even further? You can actually crank
0:55
up the compression level. Just add the
0:58
minus 9 flag. This tells XC to work its
1:01
magic and get the absolute smallest
1:03
size. Now, that can be a bit slow, but
1:05
don't worry, we can speed that right up.
1:08
Use the T flag. It puts all your
1:10
processor cores to work, which makes
1:12
things way faster. So, how does this
1:14
actually stack up against something
1:16
classic like say GZIP? Well, here's the
1:18
trade-off. See, LZMMA gives you that
1:21
super high compression ratio. Yeah, it
1:23
might be slower, but you're going to use
1:25
it when every single bite really, really
1:27
counts. And you'll see it all over the
1:29
place from Linux software to game
1:31
assets. So, it all comes down to a
1:32
choice for you. Are you going for the
1:34
smallest size or the fastest