← 返回命令列表

Linux command

fselect 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Find files by

fselect name from [/path] where name = '[*.txt]'

Find large files

fselect name, size from [/path] where size > [1g]

Find by extension

fselect name from [/path] where ext = '[jpg]'

Find recent files

fselect name, modified from [/path] where modified > [yesterday]

Show image dimensions

fselect name, width, height from [/path] where ext = '[png]'

说明

fselect uses SQL-like syntax to find and query files. It treats the filesystem as a database, selecting attributes and filtering by conditions using familiar SQL syntax. The tool extracts metadata including size, dates, permissions, and for images and audio, dimensions and tags. Aggregation functions like count and sum work on results. fselect bridges the gap between find's power and SQL's readability.

参数

where
Introduce filter conditions.
order by _FIELD_
Sort results.
limit _N_
Limit output count.
--help
Display help information.

FAQ

What is the fselect command used for?

fselect uses SQL-like syntax to find and query files. It treats the filesystem as a database, selecting attributes and filtering by conditions using familiar SQL syntax. The tool extracts metadata including size, dates, permissions, and for images and audio, dimensions and tags. Aggregation functions like count and sum work on results. fselect bridges the gap between find's power and SQL's readability.

How do I run a basic fselect example?

Run `fselect name from [/path] where name = '[*.txt]'` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does where do in fselect?

Introduce filter conditions.