equivalent of ftp put and append in scp

时间秒杀一切 提交于 2019-12-03 05:40:19

Put is just the normal scp

scp /path/to/source user@host:/path/to/target

Append only works with a little hack (and not with scp directly)

cat source | ssh user@host "cat >> /path/to/target"

scp can not append (ssh can, but it is not always an option). You can copy remote file, append it locally and then put it back.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!