CompTIA A+ Core 2 (220-1202) — Question 137
Which of the following commands can a technician use to view the contents of a single file on a Linux terminal?
Answer options
- A. chmod
- B. cat
- C. ls
- D. sudo
Correct answer: B
Explanation
The correct answer is B, as the 'cat' command is specifically designed to concatenate and display the contents of files in the terminal. The 'chmod' command is used to change file permissions, 'ls' lists directory contents, and 'sudo' is used to execute commands with elevated privileges, none of which display file contents.