1. 程式人生 > >前臺任務轉入後臺執行

前臺任務轉入後臺執行

1、先ctrl+z將當前任務暫停並轉入後臺

^Z
[1]+  Stopped                 hive --service metastore

jobs檢視詳細情況

[[email protected]] /usr/local/hive/bin$ jobs -l
[1]+ 12255 Stopped                 hive --service metastore

2、bg %i將後臺任務轉為執行狀態,i是中括號中的顯示任務號

[[email protected]] /usr/local/hive/bin$ bg %1
[1]+ hive --service metastore &

https://segmentfault.com/a/1190000000349722