How to use the disown command: 2-Minute Linux Tips

How to use the disown command: 2-Minute Linux Tips

Assessment

Interactive Video

Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial explains the disown command, which allows users to detach a running process from their login session, ensuring it continues to run even after logging out. The command is a shell builtin, commonly used in bash. The tutorial provides a practical example by running a script in the background, disowning it, and demonstrating how it no longer appears in the jobs queue but continues to run. It also covers the behavior of such processes when logging off and back in, highlighting that they remain unaffected by the login shell.

Read more

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary function of the disown command?

To restart a process

To detach a process from the login session

To pause a process temporarily

To terminate a process immediately

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which shell is mentioned as compatible with the disown command?

zsh

bash

csh

fish

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the example provided, what happens to the script after it is disowned?

It stops running

It continues running but is removed from the jobs queue

It restarts automatically

It becomes visible in the jobs queue

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the effect of disowning a process on its visibility in the jobs queue?

It is duplicated

It is highlighted

It becomes invisible

It remains visible

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

After logging out and back in, what is true about a disowned process?

It will continue running but not be associated with the login shell

It will automatically restart

It will be terminated

It will appear in the jobs list