{"repo":"sveinbjornt/searchfs","free":true,"listed":false,"github":"https://github.com/sveinbjornt/searchfs","clone":"git clone https://github.com/sveinbjornt/searchfs.git","description":"Command line tool to quickly search by filename on entire APFS and HFS+ volumes using the file system catalog.","language":"Objective-C","stars":132,"topics":["volume","catalog-search","macos","macosx","apfs-volumes","apfs","hfs-filesystem","search","searchfs","command-line-tool"],"license":"BSD-3-Clause","category":"cli-tools","readme_excerpt":"searchfs searchfs is a macOS command line tool to quickly search by filename on entire APFS and HFS+ volumes. Searching takes place at the driver level using the file system catalog. This means the volume's directory tree can be scanned much faster than with a standard recursive filename search using find . Search is case-insensitive by default. Matching files are printed to standard output in the order they are found in the catalog. See the man page for details. Download ⬇ Download latest searchfs binary (v0.4, <20 KB, ARM/Intel 64-bit, macOS 11.5 or later) Documentation searchfs man page (HTML) Install Installs binary by default into /usr/local/bin/ . Man page goes into /usr/local/share/man/man1/ . These can be overridden with DEST DIR and MAN DIR . Install via Homebrew Performance According to some basic benchmarks, searchfs runs up to 100x faster than find when performing full-volume search on APFS filesystems, and even faster on HFS+. This can be tested with the benchmark.sh script. Although I have yet to test this properly, it is probably much faster than find on hard disk drives, which have higher seek times. Testing You need Python 3 installed. History Lesson Apple added file system catalog search to Mac OS with the introduction of the Hierarchical File System (HFS) back in 1985. HFS replaced the previous flat table structure in the old MFS file system with a catalog file using a B-tree structure. Unlike Windows' FAT file system, HFS (and later, HFS+) thus arranged th","default_branch":null,"files":null,"tree":[],"storefront":"/r/sveinbjornt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sveinbjornt/searchfs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}