Allowing Other Users to Access a Shared Terminal While Testing Connectivity - Linux+ Exam XK0-004 | CompTIA

Allowing Other Users to Access a Shared Terminal While Testing Connectivity

Question

A Linux administrator is testing connectivity to a remote host on a shared terminal.

The administrator wants to allow other users to access the terminal while the command is executing.

Which of the following commands should the administrator use?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C.

The correct answer to this question is option A, which is bg ping remotehost.

Here is an explanation of each option:

A. bg ping remotehost: This command starts the ping command in the background, allowing the administrator to continue using the terminal while the command is executing. Other users can also access the terminal while the command is running.

B. fg ping remotehost: This command starts the ping command in the foreground, which means that the command takes control of the terminal until it is finished. Other users cannot access the terminal while the command is running.

C. ping remotehost < results: This command redirects the output of the ping command to a file called "results". This command does not allow other users to access the terminal while the command is running.

D. ping remotehost &: This command starts the ping command in the background, allowing the administrator to continue using the terminal while the command is executing. However, other users cannot access the terminal while the command is running because the & character puts the command in the background but does not allow it to be accessed by other users.

Therefore, the correct answer is A. bg ping remotehost.