此命令比 cp -rf 更好

命令:

plaintext
rsync -a 源目录或文件 目标目录或文件
例如:
rsync -a /dir1/ /dir2/     #dir1下所有文件同步到dir2下