1.

Which command is used for displaying contents of a file?(a) cp(b) rm(c) cat(d) mkdirI had been asked this question in my homework.Question is taken from Displaying and Creating Files: cat Command topic in portion Handling Ordinary Files of Unix

Answer»

The correct option is (c) cat

For explanation: cat command is used to DISPLAY the contents of a file. For displaying the contents, simply invoke the cat command with the filename (whose contents are to be DISPLAYED) as an ARGUMENT. For EXAMPLE, if abd.txt file contains “HELLO WORLD” then,



Discussion

No Comment Found

Related InterviewSolutions