2024-02-04T05:23:29.448Z
nova-2
2-general-nova
2024-01-09.29447
30089e05-99d1-4376-b32e-c263170674af
cf5a6068-1b5e-4d81-b677-96f9553208f2
ad0b86748d7974ba26322248b1b6d412f3bce022d451967e5333f47c68d6820d
67875a7f-c9c4-48a0-aa55-5bdb8a91c34a
deprecated
Gzip, a lossless file compression tool famous for making large chunks of data smaller.
The files on a computer are represented by bits on a silicon chip, but they often take up more space than is actually necessary.
For example, when you write your screenplay in a text document, you produce a bunch of repeated patterns.
Many years ago, Computer scientists realized we're wasting space, and wrote algorithms like l z 77 to address this problem by looping over the contents of a file to identify Repeated sequences that can be replaced with metadata or shorter sequences, thus reducing the total amount of bits required to represent the information.
Most importantly, no information is lost.
This differs from lossy compression algorithms like JPEG, which can make an image file smaller, but information is lost in the process.
Gzip was developed by Jean Lucuillie and Mark Alder in 1992, because the Big Evil Tech Corporation's held the patents on existing compression technology.
Their implementation is based on the deflate compression algorithm, which is a combination of l z 77 and Huffman.
Gzip is not the only game in town, and other formats like zip, 7 zip, and RAR solve similar problems.
On the web, gzip is the most common way to implement end to end Compression, where a file is compressed on the server, then decompressed by the browser to reduce the amount of data sent over the network.
Although, Brotli is a newer compression algorithm that's generally superior therefore files on the web.
To get started, open up any Linux machine, where you'll find gzip installed by default, as one of the most popular utilities of the GNU project.
To compress a file, use the gzip command followed by the file name.
That creates a new file ending in dotgz that should be significantly smaller.
Run the command again with the l flag to print out the compression ratio.
The higher the ratio, the more space that was saved.
Now, use the d flag to decompress the file back to its original form or better yet, use the gunzip command.
In the real world though, you'll often want to compress multiple files at the same time.
Gzip on its own cannot compress an entire directory.
For that, you'll need to bring in an Archiver like tar.
Its name is derived from tape archive, and what it does is take multiple files and combine them into a single file known as a tar ball.
When running the tar command, include the z flag to automatically compress the archive.
Congratulations.
You just made a large set of files smaller.
This has been g zip in 100 seconds.
Hit the like button if you wanna see more short videos like this.
Thanks for watching, and I will see you in the next one.

Speaker 0: Gzip, a lossless file compression tool famous for making large chunks of data smaller. The files on a computer are represented by bits on a silicon chip, but they often take up more space than is actually necessary. For example, when you write your screenplay in a text document, you produce a bunch of repeated patterns. Many years ago, Computer scientists realized we're wasting space, and wrote algorithms like l z 77 to address this problem by looping over the contents of a file to identify Repeated sequences that can be replaced with metadata or shorter sequences, thus reducing the total amount of bits required to represent the information. Most importantly, no information is lost.

This differs from lossy compression algorithms like JPEG, which can make an image file smaller, but information is lost in the process. Gzip was developed by Jean Lucuillie and Mark Alder in 1992, because the Big Evil Tech Corporation's held the patents on existing compression technology. Their implementation is based on the deflate compression algorithm, which is a combination of l z 77 and Huffman. Gzip is not the only game in town, and other formats like zip, 7 zip, and RAR solve similar problems. On the web, gzip is the most common way to implement end to end Compression, where a file is compressed on the server, then decompressed by the browser to reduce the amount of data sent over the network.

Although, Brotli is a newer compression algorithm that's generally superior therefore files on the web. To get started, open up any Linux machine, where you'll find gzip installed by default, as one of the most popular utilities of the GNU project. To compress a file, use the gzip command followed by the file name. That creates a new file ending in dotgz that should be significantly smaller. Run the command again with the l flag to print out the compression ratio.

The higher the ratio, the more space that was saved. Now, use the d flag to decompress the file back to its original form or better yet, use the gunzip command. In the real world though, you'll often want to compress multiple files at the same time. Gzip on its own cannot compress an entire directory. For that, you'll need to bring in an Archiver like tar.

Its name is derived from tape archive, and what it does is take multiple files and combine them into a single file known as a tar ball. When running the tar command, include the z flag to automatically compress the archive. Congratulations. You just made a large set of files smaller. This has been g zip in 100 seconds.

Hit the like button if you wanna see more short videos like this. Thanks for watching, and I will see you in the next one.
Gzip, a lossless file compression tool famous for making large chunks of data smaller. The files on a computer are represented by bits on a silicon chip, but they often take up more space than is actually necessary. For example, when you write your screenplay in a text document, you produce a bunch of repeated patterns.
space
deepgram
Many years ago, Computer scientists realized we're wasting space, and wrote algorithms like l z 77 to address this problem by looping over the contents of a file to identify Repeated sequences that can be replaced with metadata or shorter sequences, thus reducing the total amount of bits required to represent the information.
Most importantly, no information is lost. This differs from lossy compression algorithms like JPEG, which can make an image file smaller, but information is lost in the process. Gzip was developed by Jean Lucuillie and Mark Alder in 1992, because the Big Evil Tech Corporation's held the patents on existing compression technology. Their implementation is based on the deflate compression algorithm, which is a combination of l z 77 and Huffman. Gzip is not the only game in town, and other formats like zip, 7 zip, and RAR solve similar problems.
deep learning
youtube
software
On the web, gzip is the most common way to implement end to end Compression, where a file is compressed on the server, then decompressed by the browser to reduce the amount of data sent over the network. Although, Brotli is a newer compression algorithm that's generally superior therefore files on the web. To get started, open up any Linux machine, where you'll find gzip installed by default, as one of the most popular utilities of the GNU project. To compress a file, use the gzip command followed by the file name. That creates a new file ending in dotgz that should be significantly smaller. Run the command again with the l flag to print out the compression ratio. The higher the ratio, the more space that was saved. Now, use the d flag to decompress the file back to its original form or better yet, use the gunzip command. In the real world though, you'll often want to compress multiple files at the same time. Gzip on its own cannot compress an entire directory. For that, you'll need to bring in an Archiver like tar. Its name is derived from tape archive, and what it does is take multiple files and combine them into a single file known as a tar ball. When running the tar command, include the z flag to automatically compress the archive. Congratulations. You just made a large set of files smaller. This has been g zip in 100 seconds.
Hit the like button if you wanna see more short videos like this. Thanks for watching, and I will see you in the next one.
youtube
Gzip, a lossless file compression tool famous for making large chunks of data smaller. The files on a computer are represented by bits on a silicon chip, but they often take up more space than is actually necessary. For example, when you write your screenplay in a text document, you produce a bunch of repeated patterns. Many years ago, Computer scientists realized we're wasting space, and wrote algorithms like l z 77 to address this problem by looping over the contents of a file to identify Repeated sequences that can be replaced with metadata or shorter sequences, thus reducing the total amount of bits required to represent the information. Most importantly, no information is lost. This differs from lossy compression algorithms like JPEG, which can make an image file smaller, but information is lost in the process. Gzip was developed by Jean Lucuillie and Mark Alder in 1992, because the Big Evil Tech Corporation's held the patents on existing compression technology. Their implementation is based on the deflate compression algorithm, which is a combination of l z 77 and Huffman. Gzip is not the only game in town, and other formats like zip, 7 zip, and RAR solve similar problems. On the web, gzip is the most common way to implement end to end Compression, where a file is compressed on the server, then decompressed by the browser to reduce the amount of data sent over the network. Although, Brotli is a newer compression algorithm that's generally superior therefore files on the web. To get started, open up any Linux machine, where you'll find gzip installed by default, as one of the most popular utilities of the GNU project. To compress a file, use the gzip command followed by the file name. That creates a new file ending in dotgz that should be significantly smaller. Run the command again with the l flag to print out the compression ratio. The higher the ratio, the more space that was saved. Now, use the d flag to decompress the file back to its original form or better yet, use the gunzip command. In the real world though, you'll often want to compress multiple files at the same time. Gzip on its own cannot compress an entire directory. For that, you'll need to bring in an Archiver like tar. Its name is derived from tape archive, and what it does is take multiple files and combine them into a single file known as a tar ball. When running the tar command, include the z flag to automatically compress the archive. Congratulations. You just made a large set of files smaller. This has been g zip in 100 seconds. Hit the like button if you wanna see more short videos like this. Thanks for watching, and I will see you in the next one.
Gzip,
gzip
a
a
lossless
lossless
file
file
compression
compression
tool
tool
famous
famous
for
for
making
making
large
large
chunks
chunks
of
of
data
data
smaller.
smaller
The
the
files
files
on
on
a
a
computer
computer
are
are
represented
represented
by
by
bits
bits
on
on
a
a
silicon
silicon
chip,
chip
but
but
they
they
often
often
take
take
up
up
more
more
space
space
than
than
is
is
actually
actually
necessary.
necessary
For
for
example,
example
when
when
you
you
write
write
your
your
screenplay
screenplay
in
in
a
a
text
text
document,
document
you
you
produce
produce
a
a
bunch
bunch
of
of
repeated
repeated
patterns.
patterns
Many
many
years
years
ago,
ago
Computer
computer
scientists
scientists
realized
realized
we're
we're
wasting
wasting
space,
space
and
and
wrote
wrote
algorithms
algorithms
like
like
l
l
z
z
77
77
to
to
address
address
this
this
problem
problem
by
by
looping
looping
over
over
the
the
contents
contents
of
of
a
a
file
file
to
to
identify
identify
Repeated
repeated
sequences
sequences
that
that
can
can
be
be
replaced
replaced
with
with
metadata
metadata
or
or
shorter
shorter
sequences,
sequences
thus
thus
reducing
reducing
the
the
total
total
amount
amount
of
of
bits
bits
required
required
to
to
represent
represent
the
the
information.
information
Most
most
importantly,
importantly
no
no
information
information
is
is
lost.
lost
This
this
differs
differs
from
from
lossy
lossy
compression
compression
algorithms
algorithms
like
like
JPEG,
jpeg
which
which
can
can
make
make
an
an
image
image
file
file
smaller,
smaller
but
but
information
information
is
is
lost
lost
in
in
the
the
process.
process
Gzip
gzip
was
was
developed
developed
by
by
Jean
jean
Lucuillie
lucuillie
and
and
Mark
mark
Alder
alder
in
in
1992,
1992
because
because
the
the
Big
big
Evil
evil
Tech
tech
Corporation's
corporation's
held
held
the
the
patents
patents
on
on
existing
existing
compression
compression
technology.
technology
Their
their
implementation
implementation
is
is
based
based
on
on
the
the
deflate
deflate
compression
compression
algorithm,
algorithm
which
which
is
is
a
a
combination
combination
of
of
l
l
z
z
77
77
and
and
Huffman.
huffman
Gzip
gzip
is
is
not
not
the
the
only
only
game
game
in
in
town,
town
and
and
other
other
formats
formats
like
like
zip,
zip
7
7
zip,
zip
and
and
RAR
rar
solve
solve
similar
similar
problems.
problems
On
on
the
the
web,
web
gzip
gzip
is
is
the
the
most
most
common
common
way
way
to
to
implement
implement
end
end
to
to
end
end
Compression,
compression
where
where
a
a
file
file
is
is
compressed
compressed
on
on
the
the
server,
server
then
then
decompressed
decompressed
by
by
the
the
browser
browser
to
to
reduce
reduce
the
the
amount
amount
of
of
data
data
sent
sent
over
over
the
the
network.
network
Although,
although
Brotli
brotli
is
is
a
a
newer
newer
compression
compression
algorithm
algorithm
that's
that's
generally
generally
superior
superior
therefore
therefore
files
files
on
on
the
the
web.
web
To
to
get
get
started,
started
open
open
up
up
any
any
Linux
linux
machine,
machine
where
where
you'll
you'll
find
find
gzip
gzip
installed
installed
by
by
default,
default
as
as
one
one
of
of
the
the
most
most
popular
popular
utilities
utilities
of
of
the
the
GNU
gnu
project.
project
To
to
compress
compress
a
a
file,
file
use
use
the
the
gzip
gzip
command
command
followed
followed
by
by
the
the
file
file
name.
name
That
that
creates
creates
a
a
new
new
file
file
ending
ending
in
in
dotgz
dotgz
that
that
should
should
be
be
significantly
significantly
smaller.
smaller
Run
run
the
the
command
command
again
again
with
with
the
the
l
l
flag
flag
to
to
print
print
out
out
the
the
compression
compression
ratio.
ratio
The
the
higher
higher
the
the
ratio,
ratio
the
the
more
more
space
space
that
that
was
was
saved.
saved
Now,
now
use
use
the
the
d
d
flag
flag
to
to
decompress
decompress
the
the
file
file
back
back
to
to
its
its
original
original
form
form
or
or
better
better
yet,
yet
use
use
the
the
gunzip
gunzip
command.
command
In
in
the
the
real
real
world
world
though,
though
you'll
you'll
often
often
want
want
to
to
compress
compress
multiple
multiple
files
files
at
at
the
the
same
same
time.
time
Gzip
gzip
on
on
its
its
own
own
cannot
cannot
compress
compress
an
an
entire
entire
directory.
directory
For
for
that,
that
you'll
you'll
need
need
to
to
bring
bring
in
in
an
an
Archiver
archiver
like
like
tar.
tar
Its
its
name
name
is
is
derived
derived
from
from
tape
tape
archive,
archive
and
and
what
what
it
it
does
does
is
is
take
take
multiple
multiple
files
files
and
and
combine
combine
them
them
into
into
a
a
single
single
file
file
known
known
as
as
a
a
tar
tar
ball.
ball
When
when
running
running
the
the
tar
tar
command,
command
include
include
the
the
z
z
flag
flag
to
to
automatically
automatically
compress
compress
the
the
archive.
archive
Congratulations.
congratulations
You
you
just
just
made
made
a
a
large
large
set
set
of
of
files
files
smaller.
smaller
This
this
has
has
been
been
g
g
zip
zip
in
in
100
100
seconds.
seconds
Hit
hit
the
the
like
like
button
button
if
if
you
you
wanna
wanna
see
see
more
more
short
short
videos
videos
like
like
this.
this
Thanks
thanks
for
for
watching,
watching
and
and
I
i
will
will
see
see
you
you
in
in
the
the
next
next
one.
one
success
In this video, the speaker explains the benefits of Gagne, a lossless file compression tool. Gagne is designed to reduce the amount of space required to compress files on a computer and eliminate the loss of information. The method is popular among file compressors, but there are limitations and there is no guarantee of a solution.
gzip file compression in 100 Seconds
Gzip is a file compression tool and popular Linux utility used to make files smaller. Learn how file compression works in 100 seconds. 

#linux #compsci #100SecondsOfCode

🔗 Resources

Gzip Docshttps://www.gnu.org/software/gzip/manual/gzip.html
Linux in 100 Seconds https://youtu.be/rrB13utjYV4
Linux Directories Explained https://youtu.be/42iQKuQodW4

🔥 Get More Content - Upgrade to PRO

Upgrade to Fireship PRO at https://fireship.io/pro
Use code lORhwXd2 for 25% off your first payment. 

🎨 My Editor Settings

- Atom One Dark 
- vscode-icons
- Fira Code Font

🔖 Topics Covered

- What is Gzip? 
- How to create a tarball?
- What is end-to-end compression?
- Lossy vs Lossless file compression
- File compression algorithms history
- TAR vs Gzip