当前第2页 返回上一页
本地到远程:要将文件/opt/myfile.txt从本地传输到远程(remote.example.com)系统的/opt/directory,可以使用以下命令。
1 | # scp /opt/myfile.txt remote.example.com:/opt/
|
远程到本地:要将文件/opt/myfile.txt从远程(remote.example.com)系统传输到本地系统/ opt目录,使用以下命令。
1 | #scp remote.example.com:/opt/myfile.txt / opt /
|
本篇文章到这里就已经全部结束了,更多其他精彩内容可以关注php中文网的其他相关栏目教程!!!
以上就是bash scp:未找到命令的解决方法的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
有关linux中的bash编程讲解
如何在bash脚本中将密码传递给ssh/scp命令
linux bash是什么?
在bash shell脚本中使用for循环
在bash shell脚本中使用for循环
如何在bash shell中使用换行符(\n)
在bash shell脚本中使用while循环
如何在bash脚本中创建和使用数组
powershell和bash的定义与使用
bash shell:测试文件或目录是否存在
更多相关阅读请进入《bash》频道 >>
转载请注明出处:木庄网络博客 » bash scp:未找到命令的解决方法