fdupes - 查找重复资源文件

Fdupes 是一个 Linux 工具 Adrian Lopez (阿德里安-洛佩斯) 在 MIT 许可发行的 C 编程语言编写的。 应用程序能够找到给定的目录和子目录集中的重复文件。 Fdupes 通过比较文件的 MD5 签名,然后进行字节到字节的比较来识别重复。 Fdupes 可以传递许多选项来列出,删除和替换硬链接到重复的文件。

安装

$ brew install fdupes

使用

# 递归查询 -r 当前目录 并显示文件大小 -S
$ fdupes -r -S .

# 显示概要小结
$ fdupes -r -S -m .
569 duplicate files (in 371 sets), occupying 2.6 megabytes.
569个重复的文件(分371套),占用2.6兆字节。

# 删除重复文件,如果要退出删除模式,输入 exit 即可。
$ fdupes -r -S -d .

参考链接


作者:Plucky
出处:https://www.1991.wiki/topics/5
版权:本作品采用「署名-非商业性使用-相同方式共享 4.0 国际」许可协议进行许可,如您转载必须以链接形式注明原文地址。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
FDUPES 是一个文件去重工具,可在指定的文件夹中标识出重复文件。 使用方法: Usage: fdupes [options] DIRECTORY...  ---recurse       for every directory given follow subdirectories                     encountered within  ---recurse:      for each directory given after this option follow                     subdirectories encountered within  ---symlinks      follow symlinks  ---hardlinks     normally, when two or more files point to the same                     disk area they are treated as non-duplicates; this                     option will change this behavior  ---noempty       exclude zero-length files from consideration  ---omitfirst     omit the first file in each set of matches  ---sameline      list each set of matches on a single line  ---size          show size of duplicate files  ---quiet         hide progress indicator  ---delete        prompt user for files to preserve and delete all                     others; important: under particular circumstances,                     data may be lost when using this option together                     with -s or --symlinks, or when specifying a                     particular directory more than once; refer to the                     fdupes documentation for additional information  ---version       display fdupes version  ---help          display this help message 标签:FDUPES
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值