Re: cleaning up a system
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>>>> "martin" == martin f krafft <madduck@madduck.net> writes:
martin> there's cruft, but it's too complicated and while i should
martin> configure it in the long run, for now i have thought of
martin> something like the following, which can run for a while. i
martin> took the output of a `find /` and deleted all lines
martin> corresponding to inodes in the above special directories
martin> (find has no exclude!!! wishlist!), and now i want to:
look at -prune I use
find $HOME -path '*/log' -prune -o \( -name '*.log' <SNIP> \)
- -exec rm -Rv '{}' ';'
to delete a whole heap of unneeded files (TeX's .log .aux etc) without
touching the files in ~/log find also has a -not
I use "dpkg --list |grep -v ^ii" to find old packages that haven't
been purged, which isn't to many if you update with "apt-get --purge
dist-upgrade" consistently.
Cheers
Joel
- --
Go ahead try and spam me ...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 <http://mailcrypt.sourceforge.net/>
iD8DBQE8S8bqFgrYE4V82aYRAir2AJ9qrmp7emRoIBZZeJ6u46U19X7IPgCeMeyT
AKYwaVXtnz/0r+bcuSiLL4s=
=6D6U
-----END PGP SIGNATURE-----
Reply to: