Posted 2022-05-21Updated 2022-07-04Learning-Note-學習筆記a few seconds read (About 58 words)fg背景範例程式 test.sh 123#!/bin/shsleep 60 放到背景12$ ./test.sh &[1] 22774 用 jobs 查看目前 shell 裡的背景程式12$ jobs[1]+ Running ./test.sh & 使用 fg 指定 jobs 編號將 test.sh 返回前景(foreground)123$ fg 1./test.sh^Cfghttps://meowlucian.github.io/Linux/Command/fg/AuthorMeow LucianPosted on2022-05-21Updated on2022-07-04Licensed under#CodeLinux