nerdexam
Oracle

1Z0-409 · Question #218

You located a file created in /home successfully by using the slocate command. You found that the slocate command could locate that file even after deletion. What could be the possible solution to…

The correct answer is A. Run updatedb to update the database. B. Run slocate -u to update the database. See the full explanation below for the reasoning.

Question

You located a file created in /home successfully by using the slocate command. You found that the slocate command could locate that file even after deletion. What could be the possible solution to stop listing deleted files? (Choose all that apply.)

Options

  • ARun updatedb to update the database.
  • BRun slocate -u to update the database.
  • CUse the locate command instead of slocate.
  • DDelete the /var/lib/slocate/slocate.db file because it buffers all search results.
  • EReboot the system so that it will update the kernel memory because the kernel stores all results in

How the community answered

(18 responses)
  • A
    78% (14)
  • C
    6% (1)
  • D
    6% (1)
  • E
    11% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-409 Practice