Linux进程

后台运行程序- &

[keysystem@localhost Desktop]$ firefox &
[1] 8231
[keysystem@localhost Desktop]$ 

对于已经运行的程序,可以ctrl+z先暂停,然后执行bg切换到后台运行,如果要切换至前台运行可以使用fg命令。

[keysystem@localhost Desktop]$ 
[keysystem@localhost Desktop]$ 
[keysystem@localhost Desktop]$ firefox
^Z
[1]+  Stopped                 firefox
[keysystem@localhost Desktop]$ bg
[1]+ firefox &
[keysystem@localhost Desktop]$ fg
firefox
原文地址:https://www.cnblogs.com/alsodzy/p/7967681.html