LPIC-1 Exam 101 (Linux Administrator) — Question 53
What is the output of the following command?
echo "Hello World" | tr -d aieou
Answer options
- A. Hello World
- B. eoo
- C. Hll Wrld
- D. eoo Hll Wrld
Correct answer: C
Explanation
The command uses 'tr -d' to delete all vowels from the input string 'Hello World'. Therefore, the output removes 'e', 'o', and 'o', resulting in 'Hll Wrld'. Options A, B, and D do not reflect this outcome as they either retain the vowels or are incorrect combinations.