← 返回命令列表

Linux command

tmsu 命令

文件

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

常用示例

Tag files

tmsu tag [file] [tag1] [tag2]

List tags

tmsu tags

Find by tag

tmsu files [tag]

Find by multiple tags

tmsu files [tag1] and [tag2]

Untag file

tmsu untag [file] [tag]

Mount virtual filesystem

tmsu mount [mountpoint]

Show tags

tmsu tags [file]

Check status

tmsu status

说明

tmsu (Tag My Stuff Unix) is a file tagging tool that lets you organize files by assigning arbitrary tags rather than relying solely on directory hierarchies. Tags and file associations are stored in a local SQLite database, keeping the actual files untouched. Files can be queried using tag-based expressions with boolean operators (and, or, not), making it easy to find files matching specific criteria. The mount command provides a FUSE virtual filesystem where tagged files appear organized into directories by tag, enabling integration with standard file management tools.

参数

tag
Add tags to files or directories.
tags _file_
List all tags, or list tags for a specific file.
files _query_
Query files matching tag expressions (supports and, or, not).
untag
Remove tags from files.
mount _mountpoint_
Mount a FUSE virtual filesystem organized by tags.
rename _old_ _new_
Rename a tag.
delete _tag_
Delete a tag and all its file associations.
merge _tags_ _target_
Merge multiple tags into a single tag.
status
List file tagging status (tagged, modified, missing).

FAQ

What is the tmsu command used for?

tmsu (Tag My Stuff Unix) is a file tagging tool that lets you organize files by assigning arbitrary tags rather than relying solely on directory hierarchies. Tags and file associations are stored in a local SQLite database, keeping the actual files untouched. Files can be queried using tag-based expressions with boolean operators (and, or, not), making it easy to find files matching specific criteria. The mount command provides a FUSE virtual filesystem where tagged files appear organized into directories by tag, enabling integration with standard file management tools.

How do I run a basic tmsu example?

Run `tmsu tag [file] [tag1] [tag2]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does tag do in tmsu?

Add tags to files or directories.