$
학습 Linux 안내서
ko
XP:0
퀘스트 86BinaryIntrospector
+210 XP

Indexed Search & Command Introspection (locate, whereis, type)

이 퀘스트를 위한 인터랙티브 터미널 시작→설치 불필요 • 브라우저에서 바로 실행

개념 및 개요

When find is too slow because it scans the live disk tree, and you need to inspect command binaries vs shell builtins:

- sudo updatedb: Crawls the entire filesystem and builds a high-speed precomputed search index database (mlocate.db).
- locate : Instantly searches the indexed database in milliseconds instead of seconds.
- whereis : Locates binary executables, source files, and man pages in standard system paths.
- type : Identifies whether a command is a shell builtin (e.g. cd, umask), an alias (e.g. ll), or an external binary disk file (e.g. /bin/ls).

Update the search index with sudo updatedb, locate files with locate nginx, check binary paths with whereis nginx, and test command types using type cd and type ls.

명령어 구문 참조

Command / SyntaxDescription
sudo updatedbGenerate or update the fast mlocate search index database
locate nginxInstantly find all paths containing nginx via database
whereis nginxFind binary, source, and manual page locations
type cd / type lsDetermine whether a command is a shell builtin or binary file

검증 목표

  • ○
    Run sudo updatedb to build index
  • ○
    Run locate to find indexed files
  • ○
    Run whereis to locate command files
  • ○
    Run type to introspect command nature

퀘스트를 완료할 준비가 되셨나요? 86?