Interview Questions

You need to see the last fifteen lines of the files dog, cat and horse. What command should you use?

Operating System Interview Questions and Answers


(Continued from previous question...)

You need to see the last fifteen lines of the files dog, cat and horse. What command should you use?

tail -15 dog cat horse

The tail utility displays the end of a file. The -15 tells tail to display the last fifteen lines of each specified file.

(Continued on next question...)

Other Interview Questions