Which of the following statements is correct for a command line ending with a & character?
A.
The command’s output is redirected to/dev/null.
B.
The result of the command defines if the next command will be run.
C.
Thecommand is run in background of the current shell.
D.
The command is run as a direct child of theinitprocess.
The Answer Is:
C
This question includes an explanation.
Explanation:
The statement that is correct for a command line ending with a & character is that the command is run in background of the current shell. The & character tells the shell to run the command in the background, which means that the shell does not wait for the command to finish and returns the prompt immediately. The command’s output is not redirected to /dev/null, unless explicitly specified. The result of the command does not define if the next command will be run, unless the commands are separated by a logical operatorsuch as && or ||. The command is not run as a direct child of the init process, unless the shell is the init process itself. References: [LPI Exam 101 Detailed Objectives], Topic 103: GNU and Unix Commands, Weight: 25, Objective 103.1: Work on the command line, Background Processes
101-500 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 60% Discount on All Products,
Use Coupon: "8w52ceb345"