Searching in files and Using pipes Flashcards
1
Q
What command should we use for searching in files?
A
grep
2
Q
What command should we use to see the file type?
A
file
3
Q
What command should we use to see the binary information of file in text?
A
strings
4
Q
What is the pipe symbol?
A
|
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
6
Q
What command should we use to cut out a selected portion of a file?
A
cut
7
Q
What are the commands for paging?
A
more and less
8
Q
What command should we use to replace a character with another in a file
A
tr