Linux Essentials (010-160) — Question 15
Which of the following commands output the content of the file Texts 2.txt? (Choose two.)
Answer options
- A. cat 'Texts 2.txt'
- B. cat -- Texts 2.txt
- C. cat |Texts 2.txt|
- D. cat 'Texts\ 2.txt'
- E. cat Texts\ 2.txt
Correct answer: A, E
Explanation
The commands 'cat 'Texts 2.txt'' and 'cat Texts\ 2.txt' correctly handle the space in the filename, allowing the content of the file to be displayed. The other options either use incorrect syntax or do not properly escape the space, making them invalid for this task.