![]() ![]() It is important to be able to run certain checks automatically from a shell script. One reason why you need to know the differences between directories is so you can ensure that all your backups are working as expected! What if the automated backup procedure you run every day has a bug? What if a sector of the external drive(s), DVDs, or remote computer to which you continuously copy all your precious folders suddenly (and silently) broke? Would you notice it before actually needing those backups? This is the main reason to be able to quickly find out if the contents of two folders differ. Trying to figure out manually the differences between two directory trees like those could take days. ![]() A directory may contain many, many levels of sub-directories, each with thousands of files of all sorts. When it comes time to clean up your folders and files, a common problem crops up: how can I find where duplicate files and folders exist between multiple directories? The problem is both more complex and much more common than it may appear at first sight. I have already explained how to find and remove the unwanted extra copies here. Multiple copies of many files, scattered all over the computer, waste space, create confusion, and slow down desktop indexers like DocFetcher. Luckily, as I’ll show you in a moment, under Linux there are several, very efficient solutions to this problem. Many of us end up, inevitably, with so many files and folders that it is impossible to keep them under control without some specialized help. Marco Fioretti suggests some ways in Linux to automatically compare the contents of multiple directories in order to find missing, duplicate, or unwanted files. How to compare the content of two or more directories automatically ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |