Linux – Process to background / foreground toggle

You started a process containing a web server for example. Your terminal will be blocked until you close the running script (ctrl+c), but opening a second terminal is not always an option. That’s when these commands are used:

CTRL+Z –> to background

# fg –> to foreground

It certainly helped me a lot.