How can I run a Linux command that still runs after I close my PuTTY SSH session?

后端 未结 4 1668
情话喂你
情话喂你 2021-01-15 05:26

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

4条回答
  •  感动是毒
    2021-01-15 06:11

    Using nohup would be best solution.

    The following command in your terminal may help you out to run the script using nohup and redirect the output in your desired file.

    General Syntax

    nohup some_command &> nohup_log_file_name.out &
    

    Example

    nohup python script.py &> nohup_log_script.out & 
    

    So, if you use the above command, you will be able to find the outputs of the command in a log file named nohup_log_script.out

提交回复
热议问题