#Bash 的 fg 命令
fg [JOB_SPEC]
功能
将作业恢复到前台运行。
类型
Bash 内置命令。
参数
JOB_SPEC- 要恢复的作业编号;默认为上一个作业(最后一个后台作业)
#示例
$ nohup java -jar minecraft_server.jar nogui & # & 表示后台运行
[1] 2296010
$ fg # 恢复前台运行
nohup java -jar minecraft_server.jar nogui
#相关命令
#推荐阅读
#手册
fg: fg [job_spec]
Move job to the foreground.
Place the job identified by JOB_SPEC in the foreground, making it the
current job. If JOB_SPEC is not present, the shell's notion of the
current job is used.
Exit Status:
Status of command placed in foreground, or failure if an error occurs.