What is head command used for in Linux?
Experience Level: Junior
Tags: Linux
Answer
The head is a command is used to print out data from the start of a file. It is the opposite of the tail command which is used to output data from the end of a file.
Related Linux job interview questions
What is diff command used for in Linux?
Linux JuniorWhat is tail command used for in Linux?
Linux JuniorWhat is du command used for in Linux?
Linux JuniorWhat is df command used for in Linux?
Linux JuniorWhat is sudo command used for in Linux?
Linux Junior