This is a script for searching and hard linking duplicate files or removing / showing them with little changes. The script searches for files with the same size which are not already linked and calculates md5sum for them. Files with the same md5 are the same and can be linked or deleted or whatever you prefer. For hard linking the file system must support inodes of course. The script doesn't change anything but produces a script for replacing duplicates with hard links. If you wish to remove duplicates instead of hard linking them then just replace the line with "echo": echo rm \'$f\'
Pros: Doesn't touch already linked files and doesn't calculate md5sum for them.
Cons: It might be not optimal solution for a lot of huge files with the same size.

Who is online

Users browsing this forum: No registered users and 4 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum