Google News
logo
Unix - Quiz(MCQ)
Which Unix command is used for locating repeated and non-repeated lines?
A)
cut
B)
sort
C)
uniq
D)
paste

Correct Answer :   uniq


Explanation : When we concatenate or merge files, we can encounter the problem of duplicate entries creeping in. UNIX offers a special command (uniq) which can be used to handle these duplicate entries. We can also use the sort -u command for doing the same piece of work.

Advertisement