Moving a Linux script to run in a foreground

​A Linux script can be changed from running in background mode to run in foreground. In order to transfer a script from running in background mode to foreground mode ‘fg’ command is to be used.

fg command accepts an id of the process that needs to be moved to foreground.

Moving jobs to background is usually done with long running jobs, and moving them to foreground is done to see current state of that job.

YouTube video

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator