Tìm kiếm các files trùng nhau trên Linux
TRANG CHỦ | TIN TỨC | DIỄN ĐÀN | BÀI VIẾT | DOWNLOADS | HỎI ĐÁP | TRỢ GIÚP flagflag
Tra từ điển
Menu chính
Tư liệu - Tiện ích
Đăng nhập
Bí danh:

Mật khẩu:



Lost Password?

Register now!
Thanks to
TOP  >  Unix/Linux/Cygwin  >  Tìm kiếm các files trùng nhau trên Linux
Use FSlint


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`
Tell a friend
Votes:0 Average:0.00
Prev
Tự động thêm nội dung 1 file vào hàng loạt các file khác
top of the category
Unix/Linux/Cygwin
Next
Cách tìm files hiệu quả

Danh sách lời bình

Thảo luận mới
Giải trí - Cười
Copyright © 2005-2008 Nhatban.net. All Rights Reserved.