Use FSlint
1. Download, unzip, copy
2. Modify $PATH
3. Usage
1. Download, unzip, copy
# wget http://www.pixelbeat.org/fslint/fslint-2.26.tar.gz
# tar xzf fslint-2.26.tar.gz
# cd fslint-2.26
# mv fslint /usr/local/
2. Modify $PATH
# export PATH="$PATH:/usr/local/fslint"
3. Usage
# findup --help
find dUPlicate files.
Usage: findup [[[-t [-m|-d]] | [--summary]] [-r] [-f] paths(s) ...]
If no path(s) specified then the currrent directory is assumed.
When -m is specified any found duplicates will be merged (using hardlinks).
When -d is specified any found duplicates will be deleted (leaving just 1).
When -t is specfied, only report what -m or -d would do.
When --summary is specified change output format to include file sizes.
You can also pipe this summary format to /usr/local/fslint/fstool/dupwaste
to get a total of the wastage due to duplicates.
Examples:
search for duplicates in current directory and below
findup or findup .
search for duplicates in all linux source directories and merge using hardlinks
findup -m /usr/src/linux*
same as above but don't look in subdirectories
findup -r .
search for duplicates in /usr/bin
findup /usr/bin
search in multiple directories but not their subdirectories
findup -r /usr/bin /bin /usr/sbin /sbin
search for duplicates in $PATH
findup `/usr/local/fslint/supprt/getffp`
search system for duplicate files over 100K in size
findup / -size +100k
search only my files (that I own and are in my home dir)
findup ~ -user `id -u`
search system for duplicate files belonging to roger
findup / -user `id -u roger`
Votes:0
Average:0.00
|
Tự động thêm nội dung 1 file vào hàng loạt các file khác |
Unix/Linux/Cygwin |
Cách tìm files hiệu quả |


