1.

Which of the following command is incorrect?(a) pr dept.lst(b) head -n 5 emp.lst(c) tail -o+5 emp.lst(d) tail -3 emp.lstThis question was addressed to me in homework.My question is from Filtering Commands topic in portion Simple Filters of Unix

Answer»

The correct choice is (c) tail -o+5 emp.lst

Best EXPLANATION: The FIRST COMMAND will PREPARE a file for printing by adding header, footers and formatted text. The command head -N 5 emp.lst will display the first 5 lines of emp.lst while the command tail -3 emp.lst will display the last 3 lines of emp.ls



Discussion

No Comment Found

Related InterviewSolutions