Consider the following UNIX command: sort < in > temp; head -30 < temp; rm temp Which of the following functions shall be performed by this command?

Question:
Consider the following UNIX command:

sort < in > temp; head -30 < temp; rm temp

Which of the following functions shall be performed by this command?

1.Sort, taking the input from "temp", prints 30 lines from temp and delete the file temp

2.Sort the file "temp", removes 30 lines from temp and delete the file temp

3.Sort, taking the input from "in" and writing the output to "temp" then prints 30 lines from temp on terminal. Finally "temp" is removed

4. Sort, taking the input from 'temp" and then prints 30 lines from "temp" on terminal. Finally "temp" is removed

Posted Date:-2022-06-03 21:14:37


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!