5 Flashcards
(10 cards)
.tar
.tar (Tape Archive)
Function: Combines multiple files into one file (no compression).
Use: Grouping files/folders together.
Compress:
tar -cvf archive.tar file1 file2
Unpack:
tar -xvf archive.tar
.gzip
.gzip (GNU Zip)
Function: Compresses single files using the DEFLATE algorithm.
Use: Often used with .tar as .tar.gz.
Compress:
gzip file
Unpack:
gunzip file.gzip
.lzma
.lzma (Lempel–Ziv–Markov chain Algorithm)
Function: High compression, slower but smaller output.
Use: Used for .tar.lzma or .7z compression.
Compress:
lzma file
Unpack:
unlzma file.lzma
.xz
.xz
Function: Compresses files with better ratio than gzip, using LZMA2.
Use: Like gzip, often used with .tar (as .tar.xz).
Compress:
xz file
Unpack:
unxz file.xz
.bzip2
.bzip2
Function: utility perform more faster than gzip. compress file/folder compactly
Compress:
bzip2 file
Unpack:
bunzip2 file.bzip2
.pax
.pax (Portable Archive Exchange)
Function: Improved version of tar with better metadata support.
Use: Archiving with POSIX-compliant features.
Compress:
pax -w -f archive.pax file1 file2
Unpack:
pax -r -f archive.pax
.peazip
.peazip
Function: cross platform compression. support more than 180 file format
Use: Backup, multi-volume archiving.
Compress & Unpack:
Use PeaZip GUI (Windows/Linux)
.7zip
.7zip
Function: High compression ratio using LZMA/LZMA2.
Use: Popular for packing large files, widely supported.
Compress:
7z a archive.7z file1 file2
Unpack:
7z x archive.7z
.shar
.shar (Shell Archive)
Function: Archives files into a shell script that can extract itself.
Use: Unix/Linux scripting-based archiving.
Compress:
shar file1 file2 > archive.shar
Unpack:
sh archive.shar
.cpio
.cpio (Copy In, Copy Out)
Function: read a list of file name in input and archive files in output
Compress:
ls file1 file2 | cpio -ov > archive.cpio
Unpack:
cpio -id < archive.cpio