cp会保持inode,如果程序正在执行,会导致不能覆盖。改用rsync来覆盖
rsync -r src_dir target_dir
http://unix.stackexchange.com/questions/9899/how-to-overwrite-target-files-with-mv
cp会保持inode,如果程序正在执行,会导致不能覆盖。改用rsync来覆盖
rsync -r src_dir target_dir
http://unix.stackexchange.com/questions/9899/how-to-overwrite-target-files-with-mv