nerdexam
CompTIA

LX0-101 · Question #256

What does the following script do? #!/bin/bash find/ -perm +4000 | mail -s "Daily find output" root

The correct answer is A. Emails a report of all suid files to root. See the full explanation below for the reasoning.

Question

What does the following script do? #!/bin/bash find/ -perm +4000 | mail -s "Daily find output" root

Options

  • AEmails a report of all suid files to root.
  • BEmails a report of all important files to root.
  • CEmails a report of all writeable files to root.
  • DEmails a report of all guid files to root.
  • ECorrects permissions on files and emails the results to root.

How the community answered

(49 responses)
  • A
    76% (37)
  • B
    2% (1)
  • C
    6% (3)
  • D
    14% (7)
  • E
    2% (1)

Community Discussion

No community discussion yet for this question.

Full LX0-101 Practice