Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SAMEFILE(1)			   SAMESAME			   SAMEFILE(1)

NAME
       samesame	- introduction to the samesame tools

DESCRIPTION
       SameSame	 is a collection of tools that fall in to the category of file
       management software.  These tools will prevent that you need to	delete
       files  or buy more disk space.  Instead they solve low disk space prob-
       lems by linking identical files together	and thus free up waisted  disk
       space.

       This  collection	 was  inspired	by the application samefile written by
       Jens Schweikhardt.  The collection comes	with its own version of	 same-
       file  that  is  noticeable  faster and is able to process a much	larger
       file list.

       This port containt two set of  application:  the	 first	are  duplicate
       files  finder  search  for identical files and the second are duplicate
       file removers perform some kind of action based on those	results.

       Typical usage would be: find / |	samefile -i | samelink

       This would search for identical files and clean up wasted disk space by
       linking	them  together.	  If  you prefer removing one of the identical
       file, then you should replace samelink with samerm.  You	 can  add  the
       option -vn after	both application for a verbose dry-run.

       The tools two groups: duplicate file finders and	action driven tools.

DUPLICATE FILE FINDERS
       These tools read	a list of filenames (one filename per line) from stdin
       and output the identical	files on  stdin.   And	report	the  identical
       files on	the output.

       samearchive reads a list	of filenames (from stdin) and a	list of	direc-
       tories (from the	paramenters).  And reports the identical files if, and
       only if,	they have the same relative path.

       samearchive-lite	 reads	a  partial  list  of filenames and directories
       (from the paramenters).	And combines the partial list with the parame-
       ters  to	get a full list.  And reports the identical files if, and only
       if, they	have the same relative path.

       samefile	reads a	list of	filenames (from	stdin) and reports the identi-
       cal files.  And reports a full list of identical	files on the output.

ACTION DRIVEN TOOLS
       These  tools  all  read	the  samefile output (each line	containing two
       files that are identical) that the duplicate file  finders  output  and
       perform some action.  The can be	split in non-consumers and consumerss.
       The latter consumers the	match lines when they succeed in perorming the
       actions.	 And the non-consumers don't.

       The non-consumers are:

       samechflags change file flags

       samechmod change	file modes

       samechown change	file owner and group

       The consumers are:

       samelink	frees up the waisted disk space	by relinks one to the other.

       samecp  copies  the  first file of a pair of identical files to another
       location

       samemv moves the	first file of a	pair of	identical files	to another lo-
       cation

       samerm removes the last file of identical files to free disk space

SEE ALSO
       samearchive-lite(1) samefile(1) samelink(1) find(1) ls(1)

AUTHOR
       Alex de Kruijff

				 14 APRIL 2010			   SAMEFILE(1)

NAME | DESCRIPTION | DUPLICATE FILE FINDERS | ACTION DRIVEN TOOLS | SEE ALSO | AUTHOR

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=samesame&sektion=1&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help