1、运行SCP命令1、运行SCP命令
[root@test ~]# nohup scp <文件> oracle@localhost:/<目录>
如果是从另一台服务器copy到本服务器,则用:
[root@test ~]# nohup scp oracle@localhost:/<文件> <目录>
如果是文件夹,则用:
[root@test ~]# nohup scp -r oracle@localhost:/<文件目录> <目录>
2、输入密码
nohup: appending output to nohup.out
root@localhost's password:
此时输完密码进程会挂起,还是在前台运行
3、输入ctrl+z暂停程序
会出现如下提示:
[1]+ Stopped nohup scp <文件> root@localhost:/<目录>
4、执行bg使进程在后台继续运行
[root@test ~]# bg
[1]+ nohup scp <文件> root@localhost:/<目录>
[root@test ~]#
未经允许不得转载:高腾蛟 » Linux下SCP后台运行传输文件
评论前必须登录!
登陆 注册