Google News
logo
Unix - Quiz(MCQ)
Which command is used for displaying the beginning of a file in Unix?
A)
lp
B)
pr
C)
head
D)
begin

Correct Answer :   head


Explanation : The head command is used for displaying the top of the file. As the name suggests, it displays the beginning of the file which is specified as an argument to the command. For example,

$ head emp.lst​

Advertisement