Learn › Linux Foundations
Search
Find files and directories across the entire filesystem. Use find for real-time searches with powerful filters, and locate/mlocate for instant lookups from a pre-built database.
Labs in this module
- find - Hunt through an archive with find filters: by name, case-blind name, type, size, age, and depth. Stack filters into precise one-line hunts,
- find -exec: Act on Every Match - Turn find from a search tool into an action tool with -exec. Run a command on every match with the {} placeholder and the ; terminator, see
- locate - Read a prebuilt file list in an instant with locate: match a pattern with a wildcard, match a bare word as a substring anywhere in the path,
- updatedb - Write the database that locate reads: build a private snapshot of the archive with updatedb (-U, -o, -l 0), prove it with a readback, then w
- The locate Database: Snapshot vs Live - Why locate is fast and what it costs: locate reads a saved snapshot of paths built by updatedb, while find scans the live disk. Build the pr
- Operation Deep Search - The Search module capstone mission. Drill find (bare sweep, name, type, size, age), find -exec, updatedb, and locate in one hands-on sweep o