Command line tool to manage files.
This is developed only for my personal daily usage purpose, it's not intended to fit all requirements for everyone, use it at your own risk.
Install via NuGet package.
dotnet tool install -g tur
Fot tab completion, please refer to dotnet-suggest.
Go to Release page, download the binary according to your computer architecture. The binary is self contained executable file, make it not depend on any other files in your system.
At this moment, tur
supports thress subcommands:
In general the syntax likes:
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 analysis.
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 fitler. 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 fitler. e.g., 2022-12-02T16:20:21
--ignore-error Ignore error 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 information
PS 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 fitler. 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 fitler. e.g., 2022-12-02T16:20:21
--ignore-error Ignore error during file processing.
-?, -h, --help Show help and usage information
PS 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 fitler. 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 fitler. e.g., 2022-12-02T16:20:21
--ignore-error Ignore error during file processing.
-?, -h, --help Show help and usage information
This project is under active development, you can peek the CHANGELOG for each release.