nerdexam
LPI

010-100 · Question #1

Which of the following programs is used to search for files in a file system?

The correct answer is A. locate. The locate command is the standard Linux utility for searching the file system by querying a pre-built database of file paths. The other options listed are not valid Linux commands.

Configuration

Question

Which of the following programs is used to search for files in a file system?

Options

  • Alocate
  • Bshowfiles
  • Cflocate
  • Dsearch
  • Efindfiles

How the community answered

(34 responses)
  • A
    76% (26)
  • B
    6% (2)
  • D
    15% (5)
  • E
    3% (1)

Why each option

The locate command is the standard Linux utility for searching the file system by querying a pre-built database of file paths. The other options listed are not valid Linux commands.

AlocateCorrect

locate searches for files by querying a database maintained by the updatedb utility, making it fast and efficient for finding files by name or path pattern across the entire file system.

Bshowfiles

showfiles is not a standard Linux or Unix command and does not exist in common distributions.

Cflocate

flocate is not a recognized standard Linux command; the correct command is simply locate.

Dsearch

search is not a standard Linux command for finding files; the correct utilities are locate or find.

Efindfiles

findfiles is not a standard Linux command; find and locate are the correct utilities for searching the file system.

Concept tested: Linux file search command locate

Source: https://man7.org/linux/man-pages/man1/locate.1.html

Topics

#locate command#file search#Linux commands#filesystem

Community Discussion

No community discussion yet for this question.

Full 010-100 Practice