Skip to main content

Posts

Showing posts with the label locate

LPI E - locate set test

Linux Search Showdown: Conquer the Practice Exam Challenge! Ready, [set], locate! LPI E 2.2 Question 1: Which utility program can be used to perform a search based on a previously constructed database of files and directories on a Linux system? A) ls B) find C) locate D) grep /* --------------------- */ -------------------------- Answer 1 Below:  -------------------------- /* --------------------- */ Explanation: The locate utility program performs a search using a pre-built database of files and directories on a Linux system. It matches entries that contain a specified character string, providing a list of relevant results. The other options, ls, find, and grep, do not rely on a pre-built database for searching files and directories. Answer 1: C) locate Question 2: How can you obtain a shorter and more relevant list of files and directories when using the locate command? A) By using the -l option B) By using the -r option C) By using the -s option D) By piping locate output to g...