BASH Terminal Process

From Indie IT Wiki
Jump to: navigation, search

Run Then Disown A Terminal Process

In this example we will use Synaptic as our example programme.

sudo synaptic &

Output [1] 4711

Thanks Urban Penguin

Disown An Already Running Terminal Process

In this example Synaptic will be the already running process.

Press CTRL+Z
Output [1]+ sudo synaptic &

You should now be able to close the terminal without Synaptic closing.

Thanks Urban Penguin

Take Ownership Of A Disowned Terminal Process

fg 1    Were 1 is the number of the job running in the background you saw in jobs command

Thanks Urban Penguin