Multiple choice technology programming languages

How can we know the type of a file?

  1. type filename

  2. type - -info filename

  3. file filename

  4. none

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The file command is a standard Unix utility used to determine the file type by inspecting its content and magic numbers. The type command, on the other hand, describes how a command name is interpreted by the shell.