A help desk technician needs to display the full contents of a plain text configuration file directly within a Linux terminal window without opening an interactive editor. Which of the following commands should the technician use?
- catAnswer
- Bgrep
- Cchmod
- Dchown
Answer
The cat command should be used to display the contents of a file in the terminal.
The command 'cat' (short for concatenate) is standard in Linux and macOS terminals for printing the complete contents of one or more text files straight to standard output.
Step-by-Step Solution
Key Concept
Linux Terminal Command Usage for File Inspection