Bash Cures Cancer
Learn the UNIX/Linux command line

Home     Man Pages     SpamDefeator


hardlink(1)							  hardlink(1)



NAME
       hardlink - Consolidate duplicate files via hardlinks

SYNOPSIS
       hardlink [-c] [-n] [-v] [-h] directory1 [ directory2 ... ]

DESCRIPTION
       This  manual  page  documents  hardlink,	 a program which consolidates
       duplicate files in one or more directories using hardlinks.

       hardlink traverses one or more  directories  searching  for  duplicate
       files.  When it finds duplicate files, it uses one of them as the mas-
       ter.  It then removes all other duplicates and places a	hardlink  for
       each one pointing to the master file.  This allows for conservation of
       disk space where multiple directories on a single  filesystem  contain
       many duplicate files.

       Since  hard  links can only span a single filesystem, hardlink is only
       useful when all directories specified are on the same filesystem.

OPTIONS
       -c	 Compare only the contents of the files being considered  for
		 consolidation.	  Disregards  permission, ownership and other
		 differences.

       -n	 Do not perform the consolidation; only print what  would  be
		 changed.

       -v	 Enable verbose logging.

       -h	 Show help.

AUTHOR
       hardlink was written by Jakub Jelinek .

       Man page written by Brian Long .

       Man page updated by Jindrich Novy .



								  hardlink(1)


UNIX/Linux commands referenced on this page:
  1. which
  2. more
  3. as
  4. links