← 返回命令列表

Linux command

hazelnut 命令

文本

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

常用示例

Launch the TUI to manage rules

hazelnut

Start the background daemon to watch folders

hazelnutd

Initialize a new configuration

hazelnut init

List all configured rules

hazelnut list

Dry-run rules on a directory

hazelnut run --dir [~/Downloads]

Apply rules on a directory

hazelnut run --dir [~/Downloads] --apply

Use a custom config file

hazelnut --config [path/to/config.toml]

说明

hazelnut is a terminal-based automated file organizer inspired by Hazel for macOS. It watches folders and organizes files based on user-defined rules. The tool consists of two components: a TUI for creating and managing rules interactively, and a daemon (hazelnutd) that runs in the background applying rules continuously. Rules are defined in human-readable TOML configuration files and can trigger actions like moving, copying, renaming, archiving, deleting, trashing, or running custom commands on matched files. Matching conditions include file extension, name pattern, size, and age.

参数

init
Initialize a new configuration file.
list
List all configured rules.
run
Dry-run or apply rules on a directory.
update
Check for updates.
--config _path_
Specify a custom config file.
--dir _path_
Specify a directory to process (used with run).
--apply
Apply rules instead of dry-running (used with run).

FAQ

What is the hazelnut command used for?

hazelnut is a terminal-based automated file organizer inspired by Hazel for macOS. It watches folders and organizes files based on user-defined rules. The tool consists of two components: a TUI for creating and managing rules interactively, and a daemon (hazelnutd) that runs in the background applying rules continuously. Rules are defined in human-readable TOML configuration files and can trigger actions like moving, copying, renaming, archiving, deleting, trashing, or running custom commands on matched files. Matching conditions include file extension, name pattern, size, and age.

How do I run a basic hazelnut example?

Run `hazelnut` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does init do in hazelnut?

Initialize a new configuration file.