2.3 Utilities Flashcards

1
Q

What does cat do?

A

Prints contents of a file to standard output
Cannot pause the output -> not practical for long files

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

What does more or less command do?

A

Print contents of file to standard input with paging capability
Navigation is same as using man pages (Space to scroll down, ‘b’ to scroll back, ‘q’ to quit)

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

What does head command ddo

A

Print first few lines of the file (first 10 by default)

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

What does tail command do?

A

Print last few lines of the file (last 10 by default)

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

What does grep command do?

A

Filters file contents or command outputs to print only the lines that contain specific pattern

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