Linux Foundation Certified System Administrator (LFCS) — Question 101
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 this command utilizes a database to determine the types of files. The 'magic' command is not a standard command for this purpose, 'type' is used to display the type of command, 'pmagic' does not exist, and 'hash' is used for managing command paths, not file types.