Question 5 — AZ-104 Practice Exam 13
Which statement best describes a limitation of the cat command? (Select one answer)
It only works if the file is a directory.
It only produces meaningful output if the file is a text file.
It cannot be used with files in the
/etcdirectory.It automatically formats binary files for easy reading.
Correct answers
It only produces meaningful output if the file is a text file.
Explanations
Correct:
It only produces meaningful output if the file is a text file: cat displays raw contents, which is only readable when the file is text.
Wrong:
It only works if the file is a directory: cat is for files, not directories.
It cannot be used with files in the /etc directory: It can be used there with proper permissions.
It automatically formats binary files for easy reading: It does not format binary data.