linux将正在运行的任务放入后台执行

正在运行的任务时按ctrl-z
remote: Compressing objects: 100% (492/492), done.
^Zceiving objects: 13% (20971/160114), 11.78 MiB | 72.00 KiB/s
[1]+ Stopped make download

root@rasp3:/data/src/github.com/harbor-arm#jobs #使用jobs命令查看任务状态
[1]+ Stopped make download

root@rasp3:/data/src/github.com/harbor-arm# bg 1 #通过bg命令继续运行
[1]+ make download &

root@rasp3:/data/src/github.com/harbor-arm# jobs #任务正在运行
[1]+ Running make download &

root@rasp3:/data/src/github.com/harbor-arm# fg 1 #通过fg命令将后台的job放到前台
make download
Receiving objects: 22% (35971/160114), 35.17 MiB | 44.00 KiB/s

沪ICP备15048782号-1