fselect 是一款用 Rust 打造的命令行文件搜索工具,它最大的亮点是允许使用类 SQL 语法来查询文件。这让你能轻松处理复杂条件、统计信息甚至搜索压缩包内容。无论是开发者还是日常用户,都能通过简洁的命令快速定位目标,支持多种输出格式,让文件管理变得像查数据库一样高效直观。
核心亮点:
- 支持类 SQL 语法,轻松编写复杂查询条件
- 可搜索压缩包内部文件及多媒体元数据
- 支持按图片尺寸、EXIF 及音频标签筛选
- 兼容常见忽略规则并支持多种输出格式
当前版本 v0.10.4(2026-10-23 发布),开源协议 Apache-2.0,GitHub 4,481 star。

核心信息
| 软件名称 | Fselect(jhspetersson/fselect) |
| 当前版本 | v0.10.4 |
| 更新日期 | 2026-10-23 |
| 开源协议 | Apache-2.0 |
| 软件分类 | Windows 效率工具 |
| 关键词 | cli、command-line、files、filesystem、find、hacktoberfest |
本次更新内容
- 新增空值判断、深度字段和多种文本检测函数,查询更灵活。
- 表达式支持静态类型,大小按字节比较排序,日期时间返回标准类型。
- 修复分组合并显示相同值、布尔排序错误及子查询缓存等问题。
- 提升排序、聚合和遍历性能,优化符号链接与忽略规则处理。
- 错误不再影响输出格式,命令行参数和路径解析更稳定。
查看官方英文更新日志(原文)
### Added - `IS NULL` and `IS NOT NULL` operators. - `depth` field. - `CONTAINS_CYRILLIC` function; better Japanese text detection. - `STRPOS` function, split from `LOCATE`. - `rlike` as a regex operator alias. - Encrypted entries in zip archives; more fields available for archived files, with archive paths included in their values. - `include:` directives in `.hgignore` and `.dockerignore`. - Function argument counts and literals compared with typed expressions are checked when the query is parsed. - Integration test suite covering traversal, ignore files, formats, grouping, dates, archives and CLI flags. ### Changed - Expressions carry static types; caches, sorting, grouping and aggregates work on typed values instead of rendered text. - `fsize` is numeric: it compares, groups, sorts and aggregates by byte count while printing the formatted size. - `CURRENT_DATE`, `NOW`, `DATE_ADD`, `DATE_SUB`, `FROM_UNIXTIME`, `LAST_DAY` and `DATE_TRUNC` return datetimes. - `LEAST` and `GREATEST` operate on strings as well as numbers. - `xattr()` returns values that are not UTF-8 as `0x..` hex instead of an empty string ([#187](https://github.com/jhspetersson/fselect/issues/187)). - Unknown columns in `GROUP BY` and `ORDER BY`, ungrouped columns in grouped queries, an empty `IN ()` and an incomplete `WHERE` clause are rejected. - A literal that can never match a typed expression (`length(name) > 'abc'`) is rejected before the search starts. - `LIKE ''` matches the empty string. - Bare words are treated as function calls only for functions that take no arguments. - Root aliases are case-insensitive; JSON column names are lowercase. - Search roots defined by subqueries inherit the root options of the parent query; a grouped subquery in `FROM` yields one entry per group. - Faster sorting, aggregates, subquery caching, BFS traversal with `LIMIT`, deferred evaluation of heavy columns. ### Fixed - `GROUP BY` merged distinct values that render alike, such as sizes of 10,241 and 10,242 bytes both shown as `10.00KiB`. - Missing boolean values sorted as `false` instead of last. - `HAVING`, aggregate aliases and `MIN`/`MAX`/`COALESCE` corner cases. - Correlated subqueries: caching, nested contexts and the group values they see. - Symlink handling and ignore rules applied across symlinks. - SVG dimension detection, MP4 duration and `exif_alt` for negative altitudes. - Errors no longer break JSON and HTML output or the row count. - `--help` and `--version` after other arguments; paths containing whitespace; floating point literals and unary minus. - Windows: datetime formatting, Unix permission fields, extended attributes on musl builds. - Subquery `OFFSET` applied twice; depth calculation; path under symlinks.
下载地址
以下为官方原包,本站不二次打包,点击直接下载:
fselect-x86_64-win.zip(便携版·解压即用 | 3.6 MB)
✅ 上方 SHA256 与官方发布值一致,可自行核对。
快速上手
- 解压下载好的 fselect-x86_64-win.zip 文件,将 fselect.exe 复制到系统 PATH 环境变量包含的目录中
- 打开命令提示符,输入 fselect 命令并配合 SQL 风格语法(如 fselect path from C:\)来查找文件
- 利用内置函数或子查询功能,进一步筛选特定类型、大小或包含特定元数据的文件结果
提示:支持 Everything 索引,可大幅提升搜索速度,需安装 Everything 并启用相关功能
讨论(0 条)