Things to check
Contents may include secrets. A large or binary file can overwhelm a terminal. Redirection around cat can still overwrite files.
Before you run it
Check the filename and avoid printing credential files.
Ask your agent
“Explain the entire command, including every flag and operator. What exact files, services or permissions could it affect, and how will we verify the result?”
Context is part of the command
A command name alone cannot determine safety. Aliases, shell functions, expansions, flags, permissions and working directory can change its behavior.