1.

By default, how many lines are displayed using the head command?(a) 5(b) 10(c) 4(d) 20This question was posed to me in an international level competition.Query is from Filtering Commands in portion Simple Filters of Unix

Answer»

The CORRECT option is (b) 10

The best explanation: The head command, as the name suggests DISPLAYS the top of the file. When this command is USED WITHOUT any option, it displays the first ten lines of the file.



Discussion

No Comment Found

Related InterviewSolutions