Unbinding jobs from your console

disown is a Bash builtin which allows you to run a job in the background and log off from your console. The job keeps running while the parent console is closed.

Syntax : disown job_id

To get the job_id, run the command jobs. You will see all the ids corresponding to the processes launched within your console.

nohup is an external command which does the same job.

Syntax : nohup your_command_line &

By default, nohup redirects stdout and stderr to a file named nohup.out.

Both can be used by non-root users.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.