6. Compressing and Sorting in Linux Flashcards

1
Q

What is an archive?

A

A set a files and folders located in a single file.

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

What is tar used for?

A

To create an archive.

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

What is gzip used for?

A

To compress or uncompress files.

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

What is the extention of a tar file?

A

.tar

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

What is the extention of a gzip file?

A

.gz

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

What is the command to create an archive with tar?

A

tar -cf

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

What is the color of an archived or compressed file?

A

red

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

What is the command to read the content of a archive (tar file)?

A

tar -tf

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

What is the command to create and compress a file with tar?

A

tar -czf

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

What is the command to decompresse, extract and verbalise with tar?

A

tar -xvzf

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

What is the command to sort by size and list files?

A

ls -S or ls –sort=size (largest first)

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

What is the command to sort by time and list files?

A

ls –sort=time

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

What is the command to sort by extentsion and list files?

A

ls –sort=extentsion

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

What is the command to sort by version and list files?

A

ls –sort=version

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

How to reverse the sorting while listing the files?

A

ls -r

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

What is the command to sort STDIN?

A

sort

17
Q

What is the command to sort STDIN in reverse?

A

sort -r

18
Q

What is the command to save into a file the STDOUT of the sort command?

A

sort -o

19
Q

What is the command to sort numbers?

A

sort -n

20
Q

What is the command to sort unique values?

A

sort -u