"ua" software is an easy-to-use command line utility that identifies multiple copies of identical files. It simplifies file management by eliminating duplicate files to save disk space and boost system performance.
Installation is easy with ua, as it builds with the GNU auto tools. Just run the supplied script:
$ sh autogen.sh CFLAGS= CXXFLAGS=" -O3"
$ make
$ sudo make install
The build process uses hashed data structures by default, but if you prefer sorted tree based data structures, you can compile by running:
$ sh autogen.sh CFLAGS= CXXFLAGS=" -O3 -D__NOHASH"
$ make
$ sudo make install
ua will try to use hashed data structures, but these may be implemented as extensions in STL. You'll need OpenSSL for the MD5 implementation.
It's worth noting that if your compiler is not gcc, or it's older than gcc.3.x, the sorted data structures will be used automatically. However, our tests haven't shown a significant difference.
You can also use the routines and classes independently of the ua tool. The filei.h file contains the definition of the goodies, and it's extensively documented. Additionally, the filei.cc implementation file can be compiled to an object file and linked to other projects or archived in a library.
In short, if you're looking for a faster way to find sets of identical files, ua is definitely worth a try.
Version 1.0.1: N/A