How do I remove duplicate files in UNIX?

How do I remove duplicate files in UNIX?
Answer
You need to use shell pipes along with the following two Linux command line utilities to sort and remove duplicate text lines:
  1. sort command – Sort lines of text files in Linux and Unix-like systems.
  2. uniq command – Rport or omit repeated lines on Linux or Unix.
 

Tìm kiếm

Back
Top