Searching in files and Using pipes Flashcards

1
Q

What command should we use for searching in files?

A

grep

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

What command should we use to see the file type?

A

file

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

What command should we use to see the binary information of file in text?

A

strings

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

What is the pipe symbol?

A

|

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

What are pipes for?

A

It redirects the output of the left side command to be the input of the right side command

command1 | command2

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

What command should we use to cut out a selected portion of a file?

A

cut

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

What are the commands for paging?

A

more and less

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

What command should we use to replace a character with another in a file

A

tr

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