Linux Command - fg
The Linux command fg is used to bring a background task into the foreground.
Bring task into forground by ID:
fg %5
Matche a specified string and bring to the foreground:
fg %myscript
More options:
fg %+ # current job
fg %% # current job
fg %- # previous job
Jobspec examples:
%5 | job ID |
%test | starts with string |
%?test | contains string |
%+ | current job |
%% | current job |
%- | previous job |