Archiving and Compression: `tar`, `gzip`, `bzip2`
Utilize commands to create archives, compress files, and extract their contents.
Why Archive & Compress?
Ever needed to bundle many files into one, or reduce a file's size? That's where archiving and compression come in!
Archiving combines multiple files or directories into a single file, often called a "tarball." This makes them easier to manage and transfer.
Compression reduces the size of a file, saving disk space and speeding up transfers.
`tar`: The Archiver
The tar command (Tape ARchiver) is the standard Linux utility for creating and extracting archive files. It doesn't compress by default, but it's often used with compression tools.
Key options for tar include:
c: Create a new archive.x: Extract files from an archive.v: Verbose output (show files being processed).f: Specify the archive filename.
All lessons in this course
- Archiving and Compression: `tar`, `gzip`, `bzip2`
- Package Management (Debian/Ubuntu): `apt`, `dpkg`
- Package Management (CentOS/Fedora): `yum`, `dnf`, `rpm`
- Building from Source: configure, make, and make install