hardlink
Consolidate duplicate files by replacing them with hard links. tldr-pages
On Linux
Linux
Consolidate duplicate files by replacing them with hard links. Part of util-linux, useful for saving disk space when identical files exist across directories.
Simulate hardlinking duplicate files without modifying them
hardlink --dry-run path/to/directoryIdentifyHardlink duplicate files in a directory
hardlink path/to/directoryIdentifyHardlink duplicate files in multiple directories
hardlink path/to/directory1 path/to/directory2 ...IdentifyDisplay verbose output while hardlinking
hardlink --verbose path/to/directoryIdentifyOnly consider files with a minimum size
hardlink --minimum-size size path/to/directoryIdentify