1.

Which option is used with the cat command for displaying file with line numbers?(a) -n(b) -v(c) -a(d) -xI have been asked this question in homework.My doubt is from Displaying and Creating Files: cat Command in division Handling Ordinary Files of Unix

Answer»

Right choice is (a) -n

For explanation: cat command SUPPORTS -n option which is USED for displaying FILE CONTENTS along with line number while -v is used for displaying nonprintable ASCII CHARACTERS in the file.



Discussion

No Comment Found

Related InterviewSolutions