Which of the following commands will load the updatedb process and leave it running even if the user logs out of the shell?
  1. updatedb
  2. nohup udatedb &
  3. updatedb &
  4. updatedb -nohup
Explanation
Answer - B - You should use the nohup udatedb & command to load the updatedb process and leave it running even if the user logs out of the shell.

Key Takeaway: The nohup udatedb & command will load the updatedb process and leave it running even if the user logs out of the shell. The updatedb command creates and updates the database of file names used by locate. Updatedb generates a list of files similar to the output of find and then uses utilities for optimizing the database for performance.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz