windows无法复制粘贴
windows+r 运行如下命令,来清空剪切板
cmd.exe /c "echo off | clip"
linux复制出现报错
-rf 强制覆盖,不询问
方法 一
unaslias cp
# 这只是临时取消cp的别名,不是永久的
cp -rf src dest
# 这下就行了,就不会提示覆盖了
方法二
输入\cp命令,作用也是取消cp的别名:
\cp -rf src dest
或者直接使用原始 cp 避免使用别名的cp:
/bin/cp -rf src dest
方法三
使用管道自动输入yes :
# 让管道自动输入一大堆得yes,就可以完成了强行复制了
yes | cp cp -rf src dest
不覆盖拷贝方法
cp -rn directory Destination Path
rsync
rsync -avzu --progress 源文件 目的地
ps -elf | grep rsync | grep -v grep
kill -9 ***
rm -rf /var/run/rsyncd.pid
rsync --daemon
或
kill $(cat /var/run/rsyncd.pid) ###停止 、
rsync --daemon ##开启
failed to create pid file /var/run/rsyncd.pid: File exists
[root@source run]# cat rsyncd.pid
12777
[root@source run]# kill -9 12777
[root@source run]# netstat -ntap |grep rsync
[root@source run]# rsync --daemon
[root@source run]# failed to create pid file /var/run/rsyncd.pid: File exists
[root@source run]# rm -rf rsyncd.pid
[root@source run]# rsync --daemon