Command line tool to manage files.
This is developed only for my personal daily usage purposes. It's not intended to fit all requirements for everyone. Use it at your own risk.
Install via NuGet package.
dotnet tool install -g turFor tab completion, please refer to dotnet-suggest.
Go to the Release page and download the binary according to your computer architecture. The binary is a self-contained executable file, making it independent of any other files on your system.
At this moment, tur supports three subcommands:
In general, the syntax looks like:
tur [command] [options]PS C:\Users\jerry> tur dff --help
Description:
Duplicate files finder for target directories.
Usage:
tur dff <dir>... [options]
Arguments:
<dir> The target directories to analyze.
Options:
-i, --include <include> Glob patterns for included files.
-e, --exclude <exclude> Glob patterns for excluded files.
-o, --output <output> The output directory for logs or any file generated during processing.
--last-modify-after <last-modify-after> Last modify time after filter. e.g., 2022-10-01T10:20:21
--last-modify-before <last-modify-before> Last modify time before filter. e.g., 2022-08-02T16:20:21
--create-after <create-after> Create time after filter. e.g., 2022-07-01T10:20:21
--create-before <create-before> Create time before filter. e.g., 2022-12-02T16:20:21
--ignore-error Ignore errors during file processing.
-v, --verbose Enable logging in detailed mode.
--no-user-interaction Indicates running environment is not user interactive mode.
-?, -h, --help Show help and usage informationPS C:\Users\jerry> tur sync --help
Description:
Synchronize files from source to destination directory.
Usage:
tur sync <src> <dest> [options]
Arguments:
<src> The source directory.
<dest> The destination directory.
Options:
-i, --include <include> Glob patterns for included files.
-e, --exclude <exclude> Glob patterns for excluded files.
-o, --output <output> The output directory for logs or any file generated during processing.
--last-modify-after <last-modify-after> Last modify time after filter. e.g., 2022-10-01T10:20:21
--last-modify-before <last-modify-before> Last modify time before filter. e.g., 2022-08-02T16:20:21
-v, --verbose Enable logging in detailed mode.
--no-user-interaction Indicates running environment is not user interactive mode.
-n, --dry-run Perform a trial run with no changes made.
-d, --delete Delete extraneous files from destination directory.
--size-only Skip files that match in both name and size.
--create-after <create-after> Create time after filter. e.g., 2022-07-01T10:20:21
--create-before <create-before> Create time before filter. e.g., 2022-12-02T16:20:21
--ignore-error Ignore errors during file processing.
-?, -h, --help Show help and usage informationPS C:\Users\jerry> tur rm --help
Description:
Remove files or directories.
Usage:
tur rm [<dest>] [options]
Arguments:
<dest> The destination directory.
Options:
-i, --include <include> Glob patterns for included files.
-e, --exclude <exclude> Glob patterns for excluded files.
-o, --output <output> The output directory for logs or any file generated during processing.
--last-modify-after <last-modify-after> Last modify time after filter. e.g., 2022-10-01T10:20:21
--last-modify-before <last-modify-before> Last modify time before filter. e.g., 2022-08-02T16:20:21
-v, --verbose Enable logging in detailed mode.
--no-user-interaction Indicates running environment is not user interactive mode.
-f, --file Delete files only.
-d, --dir Delete directories only.
--empty-dir Delete all empty directories.
--from-file <from-file> Delete all files/directories listed in specified file.
--create-after <create-after> Create time after filter. e.g., 2022-07-01T10:20:21
-n, --dry-run Perform a trial run with no changes made.
--create-before <create-before> Create time before filter. e.g., 2022-12-02T16:20:21
--ignore-error Ignore errors during file processing.
-?, -h, --help Show help and usage information