← 返回命令列表

Linux command

detox 命令

文本

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

常用示例

Clean filenames

detox *

Clean filenames recursively

detox -r [directory]

Preview changes

detox -n [files]

Show verbose output

detox -v [files]

Use specific sequence

detox -s [utf_8] [files]

Clean hidden files

detox -a [directory]

说明

detox cleans up filenames by replacing problematic characters with safe alternatives. It handles spaces, special characters, Unicode characters, and other elements that can cause issues in shell scripts or cross-platform file sharing. The tool applies configurable sequences of transformations including replacing spaces with underscores, removing or transliterating non-ASCII characters, and fixing case issues. Multiple built-in sequences handle different cleaning scenarios. detox is valuable for batch-processing files from Windows systems, music libraries with complex names, or any source with inconsistent naming conventions.

参数

-r, --recurse
Process directories recursively.
-n, --dry-run
Show what would be renamed without changes.
-v, --verbose
Verbose output showing renames.
-s _SEQUENCE_
Cleaning sequence to use.
-a
Work on hidden files/directories.
-f _FILE_
Use specified configuration file.
--help
Display help information.

FAQ

What is the detox command used for?

detox cleans up filenames by replacing problematic characters with safe alternatives. It handles spaces, special characters, Unicode characters, and other elements that can cause issues in shell scripts or cross-platform file sharing. The tool applies configurable sequences of transformations including replacing spaces with underscores, removing or transliterating non-ASCII characters, and fixing case issues. Multiple built-in sequences handle different cleaning scenarios. detox is valuable for batch-processing files from Windows systems, music libraries with complex names, or any source with inconsistent naming conventions.

How do I run a basic detox example?

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

What does -r, --recurse do in detox?

Process directories recursively.