nerdexam
Oracle

1Z0-821 · Question #72

You are having an issue with the shutdown command. You wish to determine if the file is a script or an executable program. Which command would you use to determine this?

The correct answer is B. file shutdown. The file command determines the file type file tests each argument in an attempt to classify it. There are three sets of tests, performed in this order: filesystem tests, magic tests, and language tests. The first test that succeeds causes the file type to be printed.

Analyzing and Troubleshooting System Problems

Question

You are having an issue with the shutdown command. You wish to determine if the file is a script or an executable program. Which command would you use to determine this?

Options

  • Aod shutdown
  • Bfile shutdown
  • Ctest shutdown
  • Dcksum shutdown
  • Eattrib shutdown

How the community answered

(25 responses)
  • A
    8% (2)
  • B
    72% (18)
  • D
    4% (1)
  • E
    16% (4)

Explanation

The file command determines the file type file tests each argument in an attempt to classify it. There are three sets of tests, performed in this order: filesystem tests, magic tests, and language tests. The first test that succeeds causes the file type to be printed.

Topics

#file command#file type detection#script vs binary#troubleshooting tools

Community Discussion

No community discussion yet for this question.

Full 1Z0-821 Practice