$ 0 0 The uniq command in Linux and Unix is used for removing duplicate lines from a file. Learn how to use uniq command with these examples.