Loading practice questions
Consider the following UNIX command:
sort < in > temp; head -30 < temp; rm temp
Correct Answer: A — Sort, taking the input from "in" and writing the output to "temp" then prints 30 lines from temp on terminal. Finally "temp" is removed
Explanation:
The command sequence sorts the contents of the 'in' file into a 'temp' file, outputs the first 30 lines of 'temp', and then deletes 'temp'.