标题vscode终端将正在运行的程序挂起后台
挂起 Ctrl+Z
恢复 fg+工作号
查看当前被挂起的进程已经对应的号码 jobs
fg 1 可以恢复进程到前台执行。其中 fg 后面是jobs中查询到的数字。
bg 1 可以恢复进程到后台执行。其中 fg 后面是jobs中查询到的数字。
(screenAMP) (base) [yangsi@slurm-master getorf_result1]$ jobs
[1]+ Stopped python prediction_score_test.py
(screenAMP) (base) [yangsi@slurm-master getorf_result1]$ bg
[1]+ python prediction_score_test.py &
(screenAMP) (base) [yangsi@slurm-master getorf_result1]$ jobs
[1]+ Running python prediction_score_test.py &