(correct some oopses in the proposed script):<br />sudo apt-get install fslint<br /><br />#Check how much space is wasted by double files in /usr<br />#These lines are actually<br />sudo /usr/share/fslint/fslint/findup /usr --summary &gt;doublefiles.txt<br />/usr/share/fslint/fslint/fstool/dupwaste &lt;./doublefiles.txt<br />#Checking which doublefiles are present can be useful to save diskspace manually<br /><br />#Actually hardlink double files<br />df -h #report how much place is free before hardlinking<br />sudo /usr/share/fslint/fslint/findup /usr -m<br />df -h #report how much place is free after hardlinking