LPIC-1 Exam 101 v5 (Linux Administrator) — Question 81
Which of the following statements is correct for a command ending with an & character?
Answer options
- A. The command's output is redirected to /dev/null.
- B. The command is run in background of the current shell.
- C. The command's output is executed by the shell.
- D. The command is run as a direct child of the init process.
- E. The command's input is read from /dev/null.
Correct answer: B
Explanation
The correct answer is B because appending an & to a command allows it to run in the background, freeing up the terminal for other tasks. Option A is incorrect as it does not necessarily redirect output to /dev/null, and C is wrong because the output is not executed but rather displayed. Options D and E are also incorrect as they misrepresent how commands operate regarding process hierarchy and input handling.