Google News
logo
Unix - Quiz(MCQ)
Which command is used for sorting a file on specified fields?
A)
pr
B)
cut
C)
sort
D)
tail

Correct Answer :   sort


Explanation :  Sorting is the ordering of data in ascending or descending order. The sort command is used for ordering a file. Like cut command, sort also identifies fields and perform sorting on specified fields. To sort any file, just provide the name of the file as an argument with sort command.

$ sort emp.lst​

Advertisement