FastCopy 是一個在 Linux 和 Windows 上都非常快速的文件復(fù)制工具
安裝 FastCopy:
對于 Ubuntu/Debian 系統(tǒng),可以使用以下命令安裝 FastCopy:
sudo apt-get install fastcopy
對于 CentOS/RHEL 系統(tǒng),可以使用以下命令安裝 FastCopy:
sudo yum install epel-release
sudo yum install fastcopy
使用 FastCopy 進(jìn)行文件去重:
要使用 FastCopy 進(jìn)行文件去重,你可以將源目錄作為第一個參數(shù),目標(biāo)目錄作為第二個參數(shù)。FastCopy 會自動檢測重復(fù)文件并將它們從目標(biāo)目錄中刪除。
以下是一個示例命令:
fastcopy --delete-destination source_directory destination_directory
其中,source_directory
是你要復(fù)制的源目錄,destination_directory
是你要將文件復(fù)制到的目標(biāo)目錄。
例如,如果你想要從 ~/source
目錄復(fù)制文件到 ~/destination
目錄并去重,你可以使用以下命令:
fastcopy --delete-destination ~/source ~/destination
這樣,F(xiàn)astCopy 就會將 ~/source
目錄中的文件復(fù)制到 ~/destination
目錄,并刪除目標(biāo)目錄中已經(jīng)存在的重復(fù)文件。