LPIC-1 Exam 101 (Linux Administrator) — Question 47
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
- A. magic
- B. type
- C. file
- D. pmagic
- E. hash
Correct answer: C
Explanation
The correct answer is 'file' as it utilizes a database to determine the file type. The 'magic' command is related but does not directly identify file types, while 'type' is used for shell built-in command types. 'pmagic' and 'hash' are not relevant to file type identification.