LPIC-1 Exam 101 v5 (Linux Administrator) — Question 14
When redirecting the output of find to the xargs command, what option to find is useful if the filenames contain spaces?
Answer options
- A. -rep-space
- B. -printnul
- C. -nospace
- D. -ignore-space
- E. -print0
Correct answer: E
Explanation
The correct answer is -print0, as it outputs the filenames followed by a null character, which prevents issues with spaces in filenames when processed by xargs. The other options do not exist or serve a different purpose and would not effectively handle filenames containing spaces.