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
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)
3
Q
What does head command ddo
A
Print first few lines of the file (first 10 by default)
4
Q
What does tail command do?
A
Print last few lines of the file (last 10 by default)
5
Q
What does grep command do?
A
Filters file contents or command outputs to print only the lines that contain specific pattern