Unix

1:

The command  who sort - file1 > file2

A. Results in an error
B. Sorts the contents of file1 and puts it in file2
C. Both (a) and (b)
D. None of the above
 

Answer : D

Explanation :
the sort combines the output of who ('-' stands for the output of the previous command) and contents of file1 , and sorts the resultant. So, who | sort - file1 > file2 is equivalent to the sequence of commands who > x, cat x filel > y, sort > fi1e2. Hence the correct answer is (d).

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.