Why uniq is used in Linux?
Answer
The uniq command in Linux is a command line utility that reports or filters out the repeated lines in a file. In simple words, uniq is
the tool that helps to detect the adjacent duplicate lines and also deletes the duplicate lines.