103.2 Process Text Streams using Filters Flashcards

1
Q

Use cat to add one text file to the end of another.

A

cat file1.txt file2.txt

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

Use head to view the first 5 lines of a file.

A

head -5

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

Follow a log file using tail.

A

tail -f

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

Print the number of lines in a file.

A

nl

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

Perform an octal dump of a file.

A

od

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

Create three different checksums.

A

md5sum
sha256sum
sha512sum

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

Check an md5 file

A

md5sum -c

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

Display unique lines of a file.

A

uniq –group

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

sort a file using a general numeric sort, a unique sort, and a group sort

A

sort -n
sort -u
sort –group

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