nerdexam
LPI

101-500 · Question #41

Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers.)

The correct answer is C. find /tmp -user root -print D. find /tmp -user root. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

GNU and Unix Commands

Question

Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers.)

Options

  • Afind /tmp -uid root -print
  • Bfind -path /tmp -uid root
  • Cfind /tmp -user root -print
  • Dfind /tmp -user root
  • Efind -path /tmp -user root 璸rint

How the community answered

(48 responses)
  • B
    2% (1)
  • C
    96% (46)
  • E
    2% (1)

Explanation

You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

Topics

#find command#file ownership#-user vs -uid#command syntax

Community Discussion

No community discussion yet for this question.

Full 101-500 Practice