Process Text Streams using Filters Flashcards

1
Q

What does the command cat do

A

Used to concatenate (join) and view text files

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

What does the command less do

A

Read-only text viewing utility. Allows for paging up and down within a file, and keyword searches

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

what does the command head do

A

Defaults to displaying the first 10 lines of a file

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

what does the command tail do

A

Defaults to displaying the last 10 lines of a file

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

What does the command zcat do

A

Used to view gzip compressed text files

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

What does the command bzcat do

A

Used to view bunzip2 cmopressed text files

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

What does the command xzcat do

A

Used to view XZ compressed text files

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

What does the command nl do

A

Prints the number of lines in a file. Output of the command can be modified to fit different cases

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

What does the command wc do

A

Used to print the number of words, lines, or bytes in a file

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

What does the command od do

A

The octal dump command,. Use to print out a file in octal or many other formats

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

what does the command md5sum do

A

Calculates and checks a files hash based on the md5 algorithm

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

What does the command sha256sum do

A

Calculates and checks a files hash value based on the SHA-2 hash algorithm using 256 bits

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

What does the command sha512sum do

A

Calculates and checks a files hash value based on the SHA-2 hash algorithm using 512 bits

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

What does the command sort do

A

used to sort and/or merge files

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

What does the command uniq do

A

Displays unique lines of a file

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

What does the command tr do

A

Used to translate (or swap) characters in a file for another character

17
Q

What does the command sed do

A

Used for a variety of tasks, commonly used to alter text in a file or search and replace words

18
Q

What does the command split do

A

Splits a file up into pieces