Linux – how to bring a background job to foreground

linuxshell

in Linux/shell, how can I bring background jobs to foreground and vice versa?

Best Answer

Did you use Ctrl+Z, SIGTSTP or SIGSTOP to send it to the background? If so, you can bring it back to the foreground with the command

 fg

To get a list of all the stopped jobs and background jobs, use

jobs