LPIC-1 Exam 101 v5 (Linux Administrator) — Question 78
Which of the following commands determines a file's format by using a definition database file which contains information about all common file types?
Answer options
- A. type
- B. file
- C. magic
- D. pmagic
- E. hash
Correct answer: B
Explanation
The correct answer is 'file' because it uses a magic number database to determine the file type. The 'type' command provides a general description rather than specific format identification, while 'magic' and 'pmagic' are not standard commands in this context. 'hash' is used for calculating checksums, not for identifying file types.