CompTIA Linux+ Powered by LPI (LX0-103) — Question 2

Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?

Answer options

Correct answer: C

Explanation

The correct answer is 'file', which uses a definition database to identify file types. The other options, such as 'magic' and 'type', do not serve this specific purpose, while 'pmagic' and 'hash' are not used for determining file types.