5 Flashcards

(10 cards)

1
Q

.tar

A

.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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

.gzip

A

.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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

.lzma

A

.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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

.xz

A

.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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

.bzip2

A

.bzip2
Function: utility perform more faster than gzip. compress file/folder compactly

Compress:
bzip2 file
Unpack:
bunzip2 file.bzip2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

.pax

A

.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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

.peazip

A

.peazip
Function: cross platform compression. support more than 180 file format

Use: Backup, multi-volume archiving.

Compress & Unpack:
Use PeaZip GUI (Windows/Linux)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

.7zip

A

.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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

.shar

A

.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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

.cpio

A

.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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly