Novell Certified Linux Professional (CLP) — Question 7
Which command would you use to start the xeyes program in the background?
Answer options
- A. xeyes > bg
- B. bg | xeyes
- C. xeyes -bg
- D. xeyes | bg
- E. xeyes &&
- F. xeyes &
Correct answer: A
Explanation
The correct answer is A, as the command 'xeyes > bg' redirects the output of xeyes, effectively putting it in the background. The other options do not correctly initiate the xeyes program in the background; for instance, B and D use piping which is not suitable for background execution, while C and E are incorrect syntax for launching the program in the background.