#!/bin/bash # remove-documentation: Remove unnecessary documentation to reduce disk usage # # Author: Alex Chiang # Date : November 9, 2010 echo "Removing documentation..." find /usr/share/doc -depth -type f ! -name copyright|xargs rm || true find /usr/share/doc -empty|xargs rmdir || true rm -rf /usr/share/man /usr/share/groff /usr/share/info /usr/share/lintian /usr/share/linda /var/cache/man