ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 363 - XK0-005 discussion

Report
Export

An administrator wants to execute a long-running script in the terminal while troubleshooting another issue. Which of the following options will achieve this goal?

A.

bash script.sh &

Answers
A.

bash script.sh &

B.

source script.sh

Answers
B.

source script.sh

C.

sh script.sh | jobs

Answers
C.

sh script.sh | jobs

D.

nice -10 ./script.sh

Answers
D.

nice -10 ./script.sh

Suggested answer: A

Explanation:

Running a command with & at the end sends it to the background, allowing the administrator to continue using the terminal for other tasks while the script runs. This is useful for long-running scripts that do not require immediate attention but need to keep running.

asked 18/10/2024
Brian Wilson
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first