Friday 29 May 2015

Q49,paper2,J13.Consider the following UNIX command : sort in temp; head – 30 temp; rm temp Which of the following functions shall be performed by this command ?



(A) Sort, taking the input from “temp”, prints 30 lines from temp and delete the file temp
(B) Sort the file “temp”, removes 30 lines from temp and delete  the file temp
(C) Sort, taking the input from “in” and writing the output to “temp” then prints 30 lines
from temp on terminal. Finally “temp” is removed.
(D) Sort, taking the input from “temp” and then prints 30 lines from “temp” on terminal. Finally “temp” is removed.
Answer C.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.