How does the head command work?
Answer
The head command
reads the first few lines of any text given to it as an input and writes them to standard output
(which, by default, is the display screen). The square brackets indicate that the enclosed items are optional. By default, head returns the first ten lines of each file name that is provided to it.
Answer
The head command
reads the first few lines of any text given to it as an input and writes them to standard output
(which, by default, is the display screen). The square brackets indicate that the enclosed items are optional. By default, head returns the first ten lines of each file name that is provided to it.