linux前后台任务切换

jobs  查看后台运行的进程

command&     进程直接在后台运行

crtl+z             当前前台进程到后台并停止

bg n或bg %n  使后台序号为n的进程开始运行

fg n或fg %n    将后台序号为n的进程调至前台并继续运行

kill %n           杀死job n

PS:"n"为jobs命令查看到的job编号,不是进程编号.

原文地址:https://www.cnblogs.com/jacob-tian/p/6479045.html