exam questions

Exam LFCS All Questions

View all questions & answers for the LFCS exam

Exam LFCS topic 1 question 84 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 84
Topic #: 1
[All LFCS Questions]

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?

  • A. magic
  • B. type
  • C. file
  • D. pmagic
  • E. hash
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Strib
6 months, 3 weeks ago
Selected Answer: C
The correct answer is C. The file command is used to determine the type of a file by using a definition database file which contains information about all common file types. The file command examines the contents of a file and matches it against patterns in the database to determine the file's type. It provides information such as the file format, encoding, and other relevant details.
upvoted 1 times
Strib
6 months, 3 weeks ago
A. magic: While the file command uses a "magic" database to determine file types, magic itself is not a command. It is the name of the file/database that contains the definitions and patterns used by the file command. B. type: The type command is used in Bash to determine how a command would be interpreted if executed. It displays whether the command is a built-in shell command, an alias, a function, or an executable file. It does not determine the type of a file based on its contents. D. pmagic: There is no standard command called pmagic related to file type determination in most common Linux distributions. It does not determine the type of a file based on its contents. E. hash: The hash command in Bash is used to remember the full pathnames of commands to avoid searching for the command in directories listed in the PATH variable. It does not determine the type of a file based on its contents.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago