Compress and Decompress Flashcards

1
Q

How do you archive using tar?

A

tar -c -f filename.tar source

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

How do you extract using tar?

A

tar -x -f filename.tar

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

How do you compress using gzip?

A

gzip filename.gz source
gzip -k filename.gz source

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

How do you decompress using gzip?

A

gzip -d filename.gz
gunzip filename.gz

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

How do you compress using tar and gzip?

A

tar -c -z -f filename.tgz source

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

How do you compress using bzip2?

A

bzip2 filename.bz2 source
bzip2 -k filename.bz2 source

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

How do you decompress using bzip2?

A

bzip2 -d filename.bz2
bunzip2 filename.bz2

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

How do you compress using tar and bzip2?

A

tar -c -j -f filename.tbz source

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

How do you compress using xz?

A

xz filename.xz source
xz -k filename.xz source

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

How do you decompress using xz?

A

xz -d filename.xz
unxz filename.xz

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

How do you compress using tar and xz?

A

tar -c -J filename.txz

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