fselect finds files using a relaxed SQL-style query language with filters on metadata, archives, media tags, and permissions.
Overview
fselect is a command-line program for searching the filesystem with queries that resemble SQL without being a full database engine. You select columns such as name, path, or size, optionally scope one or more roots, and filter with where, group by, order by, and limit clauses.
Filters can use sizes, dates, owners, MIME types, hashes, extended attributes, POSIX ACLs, Linux capabilities, and boolean shortcuts for common file kinds. It can search inside ZIP archives, honor .gitignore, .hgignore, and .dockerignore rules, and match image dimensions or EXIF fields plus audio tags across several formats.
Aggregates, subqueries, correlated EXISTS checks, and multiple output formats (including CSV and JSON) support reporting-style searches. Optional builds integrate the Everything index on Windows or plocate on Linux for faster name lookups, and an interactive mode offers a small REPL with history.
Packages ship via cargo, distribution packages, Homebrew, MacPorts, Nix, winget, Chocolatey, Scoop, and prebuilt binaries for Linux, Windows, and macOS.
Key features
- Relaxed SQL-like query syntax
- Aggregate and subquery support
- Archive and symlink search options
- Image EXIF and dimension filters
- Audio metadata search
- Gitignore-aware traversal
- CSV JSON and HTML output
- Optional index-backed fast search
Use cases
- Finding large or stale files
- Auditing permissions and ACLs
- Locating media by tags or resolution
- Duplicate detection via hash grouping
- Cross-directory comparison queries