BASH Terminal Process

From Indie IT Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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
bg
Output [1]+ sudo synaptic &
disown

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

Thanks Urban Penguin

Take Ownership Of A Disowned Terminal Process

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

Thanks Urban Penguin