关闭PuTTY SSH会话后,如何运行仍在运行的Linux命令? [英] How can I run a Linux command that still runs after I close my PuTTY SSH session?

查看:482
本文介绍了关闭PuTTY SSH会话后,如何运行仍在运行的Linux命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过腻子连接到NAS,该腻子上运行的是Linux.

I am connecting to my NAS over putty which is running linux on it.

我想将一个大目录从一个位置移动到另一个位置.关闭腻子会话后是否可以使进程继续运行?

I wanted to move a big directory from one location to another. Is it possible to keep the process running after I close the putty session ?

恐怕如果我关闭腻子,文件将不会复制到末尾?

I am afraid that if I close putty the files will not be copied to the end ?

推荐答案

以"nohup"开始您的任务,并以&"将其放在后台,例如:

Start your task with 'nohup' and put it in the background with '&', e.g.:

$ nohup mv /here /there &
$ exit

,它应该继续运行.

这篇关于关闭PuTTY SSH会话后,如何运行仍在运行的Linux命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆